summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-06-12 20:08:52 +0300
committerJared Adams <jaxad0127@gmail.com>2010-06-12 11:29:41 -0600
commitb01a081f9f837665f7062235a583303b5ebca77e (patch)
tree15d0a10107bd89d08bccd377fd6caee2ab547282 /src
parentb02382703e49bb4d611d81dfc817b22c6294dcbd (diff)
downloadmana-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>
Diffstat (limited to 'src')
-rw-r--r--src/being.cpp5
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)