diff options
author | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-13 17:37:46 +0200 |
---|---|---|
committer | Erik Schilling <ablu.erikschilling@googlemail.com> | 2013-09-13 17:37:46 +0200 |
commit | 53a566674c6912647f636617c020835abeb04a98 (patch) | |
tree | 24be602006e948320e42fc6d79e197f7d4c11cd1 /src | |
parent | a561cb7a79523312bd9cbb9455f14ba1dc0c5867 (diff) | |
download | manaserv-53a566674c6912647f636617c020835abeb04a98.tar.gz manaserv-53a566674c6912647f636617c020835abeb04a98.tar.bz2 manaserv-53a566674c6912647f636617c020835abeb04a98.tar.xz manaserv-53a566674c6912647f636617c020835abeb04a98.zip |
Fixed walking resetting the dead action
Diffstat (limited to 'src')
-rw-r--r-- | src/game-server/being.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game-server/being.cpp b/src/game-server/being.cpp index 8b4c2967..1d8ff094 100644 --- a/src/game-server/being.cpp +++ b/src/game-server/being.cpp @@ -193,8 +193,8 @@ void BeingComponent::move(Entity &entity) // zone to another. mOld = entity.getComponent<ActorComponent>()->getPosition(); - // Ignore not moving beings - if (mAction == STAND && mDst == mOld) + // Ignore not moving or dead beings + if ((mAction == STAND && mDst == mOld) || mAction == DEAD) return; if (mMoveTime > WORLD_TICK_MS) |