summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Schilling <ablu.erikschilling@googlemail.com>2012-02-27 20:02:14 +0100
committerErik Schilling <ablu.erikschilling@googlemail.com>2012-02-27 20:23:22 +0100
commitb966735fae77a62fbd366936840c089455d21af0 (patch)
tree5682062e0c02a63c79eec52a2d4b6ce49186780b
parenta03c551282d5251b458962611ffd0d683a26774a (diff)
downloadmanaserv-b966735fae77a62fbd366936840c089455d21af0.tar.gz
manaserv-b966735fae77a62fbd366936840c089455d21af0.tar.bz2
manaserv-b966735fae77a62fbd366936840c089455d21af0.tar.xz
manaserv-b966735fae77a62fbd366936840c089455d21af0.zip
Prevent calculating movement of being further if it does not move
Reviewed-by: bjorn.
-rw-r--r--src/game-server/being.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index d44d2a6d..6fce57e8 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -293,6 +293,10 @@ void Being::move()
|| !getModifiedAttribute(ATTR_MOVE_SPEED_RAW))
return;
+ // Ignore not moving beings
+ if (mAction == STAND && mDst == getPosition())
+ return;
+
// Remember the current position before moving. This is used by
// MapComposite::update() to determine whether a being has moved from one
// zone to another.