summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/localplayer.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index af0fab18b..f43d7e2d5 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1018,17 +1018,19 @@ void LocalPlayer::setDestination(int x, int y)
Being::setDestination(x, y);
}
-
- // Manaserv:
- // If the destination given to being class is accepted,
- // we inform the Server.
- if ((x == mDest.x && y == mDest.y)
- || Net::getNetworkType() == ServerInfo::TMWATHENA)
+ else
{
- Net::getPlayerHandler()->setDestination(x, y, mDirection);
+#ifdef MANASERV_SUPPORT
+ // Manaserv:
+ // If the destination given to being class is accepted,
+ // we inform the Server.
+ if ((x == mDest.x && y == mDest.y)
+ || Net::getNetworkType() == ServerInfo::TMWATHENA)
+#endif
+ {
+ Net::getPlayerHandler()->setDestination(x, y, mDirection);
+ }
}
-
- return;
}
}