]> git.localhorst.tv Git - l2e.git/commitdiff
fixed stepping algo again -.-
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Oct 2012 19:24:18 +0000 (21:24 +0200)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Fri, 12 Oct 2012 19:24:18 +0000 (21:24 +0200)
src/map/MapState.cpp

index 8dab40e9bba9bde45dcf9a154bacf34f6a1454c4..c1b34518f1dc49887afa545716aae248026ee1c6 100644 (file)
@@ -123,9 +123,9 @@ void MapState::OnTileLock() {
                if (afterLock) {
                        bool blocked(CheckBlocking());
                        OnMove(!blocked);
-                       afterLock = false;
                        controlled->SetOrientation(Entity::Orientation(nextDirection));
                        if (!blocked) {
+                               afterLock = false;
                                controlled->SetSpeed(walkingSpeed);
                                moveTimer.Clear();
                                if (pushed) {