Updated monodev's project files.
authorWolfgang Becker <uafr@gmx.de>
Tue, 16 May 2006 16:26:12 +0000 (16:26 +0000)
committerWolfgang Becker <uafr@gmx.de>
Tue, 16 May 2006 16:26:12 +0000 (16:26 +0000)
SVN-Revision: 3539

src/object/player.cpp

index f9efddf..a7643b7 100644 (file)
@@ -201,6 +201,10 @@ Player::update(float elapsed_time)
              bbox.get_height()*0.66666 - 32);
     grabbed_object->grab(*this, pos, dir);
   }
+  
+  if(grabbed_object != 0 && dying){
+    grabbed_object->ungrab(*this, dir);
+  }
 
   on_ground_flag = false;
 }