summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 8d6ad542..efdcaa60 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -546,6 +546,7 @@ void LocalPlayer::nextTile(unsigned char dir = 0)
if ((int)pos.x != destination.x
|| (int)pos.y != destination.y)
{
+ lookAt(destination);
setDestination(destination.x, destination.y);
}
else if (dir != mDirection)
@@ -759,9 +760,6 @@ void LocalPlayer::startWalking(unsigned char dir)
if (dir & RIGHT)
dx++;
- // Update the direction when the walk just start
- setDirection(dir);
-
nextTile(dir);
}