diff options
Diffstat (limited to 'src/being.cpp')
-rw-r--r-- | src/being.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/being.cpp b/src/being.cpp index 42043313..4f546f6d 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -893,10 +893,12 @@ void Being::logic() ActorSprite::logic(); - // Remove it after 3 secs. TODO: Just play the dead animation before removing + // Remove it after 1.5 secs if the dead animation isn't long enough, + // or simply play it until it's finished. if (!isAlive() && Net::getGameHandler()->removeDeadBeings() && - get_elapsed_time(mActionTime) > 3000) + get_elapsed_time(mActionTime) > std::max(getDuration(), 1500)) { + if (getType() != PLAYER) actorSpriteManager->destroy(this); } |