diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-28 20:51:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-28 20:51:15 +0300 |
commit | 8aed49f9c62e7a9a8f94d6189f173815d3834080 (patch) | |
tree | 7a55d6d13c65491462dd238123d35895f8f91b77 /src | |
parent | 1a835b0f5e8655166cdfebb879635b852ceecfd8 (diff) | |
download | plus-8aed49f9c62e7a9a8f94d6189f173815d3834080.tar.gz plus-8aed49f9c62e7a9a8f94d6189f173815d3834080.tar.bz2 plus-8aed49f9c62e7a9a8f94d6189f173815d3834080.tar.xz plus-8aed49f9c62e7a9a8f94d6189f173815d3834080.zip |
Dont second set destination packet if using special move modes.
Diffstat (limited to 'src')
-rw-r--r-- | src/localplayer.cpp | 20 |
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; } } |