From 8aed49f9c62e7a9a8f94d6189f173815d3834080 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 28 Apr 2011 20:51:15 +0300 Subject: Dont second set destination packet if using special move modes. --- src/localplayer.cpp | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) (limited to 'src/localplayer.cpp') 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; } } -- cgit v1.2.3-60-g2f50