summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-28 20:51:15 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-28 20:51:15 +0300
commit8aed49f9c62e7a9a8f94d6189f173815d3834080 (patch)
tree7a55d6d13c65491462dd238123d35895f8f91b77 /src/localplayer.cpp
parent1a835b0f5e8655166cdfebb879635b852ceecfd8 (diff)
downloadplus-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/localplayer.cpp')
-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;
}
}