diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 1a110810..2cf59f12 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -333,7 +333,7 @@ void LocalPlayer::nextTile(unsigned char dir = 0) //effectManager->trigger(15, (int) pos.x + (dx * dScaler), (int) pos.y + (dy * dScaler)); setDestination((int) pos.x + (dx * dScaler), (int) pos.y + (dy * dScaler)); } - else if (dir) + else if (dir != mDirection) { // If the being can't move, just change direction Net::getPlayerHandler()->setDirection(dir); @@ -564,7 +564,7 @@ void LocalPlayer::startWalking(unsigned char dir) { setDestination(getTileX() + dx, getTileY() + dy); } - else if (dir) + else if (dir != mDirection) { // If the being can't move, just change direction Net::getPlayerHandler()->setDirection(dir); |