X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmap%2FMapState.cpp;fp=src%2Fmap%2FMapState.cpp;h=5ec95071963cbfccac3f3920b3ffc0c1ca56343d;hb=0bbc2eda56eba3ea195c2043370ff4d3fd29ca79;hp=500acea60623b5dd464d99f62ebbdff24848165d;hpb=3a86cc937e9fce68384efc08edb6d6ba101d12eb;p=l2e.git diff --git a/src/map/MapState.cpp b/src/map/MapState.cpp index 500acea..5ec9507 100644 --- a/src/map/MapState.cpp +++ b/src/map/MapState.cpp @@ -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(r.Address0()), r.Vector0())); + Ctrl().PushState(new TransitionState(this, reinterpret_cast(r.AddressRegister(0)), r.VectorRegister(0))); ColorFade *fadeOut(new ColorFade(this, 0, 500, false)); fadeOut->SetLeadOutTime(500); Ctrl().PushState(fadeOut);