diff options
author | Andrei Karas <akaras@inbox.ru> | 2010-06-12 20:08:52 +0300 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2010-06-12 11:29:41 -0600 |
commit | b01a081f9f837665f7062235a583303b5ebca77e (patch) | |
tree | 15d0a10107bd89d08bccd377fd6caee2ab547282 | |
parent | b02382703e49bb4d611d81dfc817b22c6294dcbd (diff) | |
download | mana-client-b01a081f9f837665f7062235a583303b5ebca77e.tar.gz mana-client-b01a081f9f837665f7062235a583303b5ebca77e.tar.bz2 mana-client-b01a081f9f837665f7062235a583303b5ebca77e.tar.xz mana-client-b01a081f9f837665f7062235a583303b5ebca77e.zip |
Prevent removing dead players by timer.
Signed-off-by: Jared Adams <jaxad0127@gmail.com>
-rw-r--r-- | src/being.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/being.cpp b/src/being.cpp index 2ff96c81..5583b8c2 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -864,7 +864,10 @@ void Being::logic() if (!isAlive() && Net::getGameHandler()->removeDeadBeings() && (int) ((get_elapsed_time(mActionTime) / getWalkSpeed().x) >= frameCount)) - actorSpriteManager->destroy(this); + { + if (getType() != PLAYER) + actorSpriteManager->destroy(this); + } } void Being::drawEmotion(Graphics *graphics, int offsetX, int offsetY) |