Prevent crash when tux dies while carrying iceblock.
authorWolfgang Becker <uafr@gmx.de>
Sun, 14 May 2006 12:43:58 +0000 (12:43 +0000)
committerWolfgang Becker <uafr@gmx.de>
Sun, 14 May 2006 12:43:58 +0000 (12:43 +0000)
SVN-Revision: 3517

src/object/player.cpp

index de69797..eefc7bb 100644 (file)
@@ -190,7 +190,7 @@ Player::update(float elapsed_time)
 
   movement = physic.get_movement(elapsed_time);
 
-  if(grabbed_object != 0) {
+  if(grabbed_object != 0 && !dying ) {
     Vector pos = get_pos() + 
       Vector(dir == LEFT ? -16 : 16,
              bbox.get_height()*0.66666 - 32);