summaryrefslogtreecommitdiff
path: root/src
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
parent1a835b0f5e8655166cdfebb879635b852ceecfd8 (diff)
downloadmv-8aed49f9c62e7a9a8f94d6189f173815d3834080.tar.gz
mv-8aed49f9c62e7a9a8f94d6189f173815d3834080.tar.bz2
mv-8aed49f9c62e7a9a8f94d6189f173815d3834080.tar.xz
mv-8aed49f9c62e7a9a8f94d6189f173815d3834080.zip
Dont second set destination packet if using special move modes.
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;
}
}