Tuxdev's patch to fix death by falling when invincible.
authorWolfgang Becker <uafr@gmx.de>
Thu, 6 Jul 2006 11:07:12 +0000 (11:07 +0000)
committerWolfgang Becker <uafr@gmx.de>
Thu, 6 Jul 2006 11:07:12 +0000 (11:07 +0000)
SVN-Revision: 3913

src/object/player.cpp

index c71e11f..b5d0239 100644 (file)
@@ -1012,7 +1012,7 @@ Player::kill(bool completely)
   if(dying || deactivated)
     return;
 
-  if(!completely && safe_timer.started() || invincible_timer.started())
+  if(!completely && (safe_timer.started() || invincible_timer.started()))
     return;                          
   
   sound_manager->play("sounds/hurt.wav");