summaryrefslogtreecommitdiff
path: root/src/game-server/being.cpp
diff options
context:
space:
mode:
authorStefan Beller <stefanbeller@googlemail.com>2012-08-05 20:56:45 +0200
committerStefan Beller <stefanbeller@googlemail.com>2012-08-05 20:58:53 +0200
commit1a3839c8edf0a49adbd34299eb2eab585f093f7f (patch)
treec5a0c3475109fd624fe3d514fd4d5a1af9013da8 /src/game-server/being.cpp
parentab10088e49785963268fb893e2153857e7f89a09 (diff)
downloadmanaserv-1a3839c8edf0a49adbd34299eb2eab585f093f7f.tar.gz
manaserv-1a3839c8edf0a49adbd34299eb2eab585f093f7f.tar.bz2
manaserv-1a3839c8edf0a49adbd34299eb2eab585f093f7f.tar.xz
manaserv-1a3839c8edf0a49adbd34299eb2eab585f093f7f.zip
Correct updating the old position of beings.
Reviewed-by: bjorn acked-by: Ablu
Diffstat (limited to 'src/game-server/being.cpp')
-rw-r--r--src/game-server/being.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp
index 8c2b08c7..2f4e677b 100644
--- a/src/game-server/being.cpp
+++ b/src/game-server/being.cpp
@@ -294,15 +294,15 @@ 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.
mOld = getPosition();
+ // Ignore not moving beings
+ if (mAction == STAND && mDst == getPosition())
+ return;
+
if (mMoveTime > WORLD_TICK_MS)
{
// Current move has not yet ended