]> git.localhorst.tv Git - l2e.git/blobdiff - src/map/MapState.cpp
revised implementation of script text
[l2e.git] / src / map / MapState.cpp
index 500acea60623b5dd464d99f62ebbdff24848165d..5ec95071963cbfccac3f3920b3ffc0c1ca56343d 100644 (file)
@@ -441,10 +441,10 @@ bool MapState::ZCompare(const Entity *lhs, const Entity *rhs) {
 
 
 void MapState::HandleSyscall(common::ScriptRunner &r) {
-       switch (r.Integer0()) {
+       switch (r.IntegerRegister(0)) {
                case TRANSITION: {
                        Ctrl().PushState(new ColorFade(this, 0, 500, true));
-                       Ctrl().PushState(new TransitionState(this, reinterpret_cast<Map *>(r.Address0()), r.Vector0()));
+                       Ctrl().PushState(new TransitionState(this, reinterpret_cast<Map *>(r.AddressRegister(0)), r.VectorRegister(0)));
                        ColorFade *fadeOut(new ColorFade(this, 0, 500, false));
                        fadeOut->SetLeadOutTime(500);
                        Ctrl().PushState(fadeOut);