summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 6ec334ed..79ea00af 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -579,14 +579,11 @@ void LocalPlayer::startWalking(unsigned char dir)
if (!mMap || !dir)
return;
-#ifdef MANASERV_SUPPORT
- const Vector &pos = getPosition();
-#endif
-
if (mAction == WALK && !mPath.empty())
{
// Just finish the current action, otherwise we get out of sync
#ifdef MANASERV_SUPPORT
+ const Vector &pos = getPosition();
Being::setDestination(pos.x, pos.y);
#else
Being::setDestination(getTileX(), getTileY());