diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-02-27 20:02:14 +0100 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2012-02-27 20:23:22 +0100 |
commit | b966735fae77a62fbd366936840c089455d21af0 (patch) | |
tree | 5682062e0c02a63c79eec52a2d4b6ce49186780b /src | |
parent | a03c551282d5251b458962611ffd0d683a26774a (diff) | |
download | manaserv-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.
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/being.cpp | 4 |
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. |