Bug fix: on incencible mode, stars were being drawn even when player was in dying...
authorRicardo Cruz <rick2@aeiou.pt>
Mon, 13 Sep 2004 22:45:44 +0000 (22:45 +0000)
committerRicardo Cruz <rick2@aeiou.pt>
Mon, 13 Sep 2004 22:45:44 +0000 (22:45 +0000)
SVN-Revision: 1902

src/player.cpp

index 5fec558..d055a1e 100644 (file)
@@ -870,7 +870,8 @@ Player::draw(DrawingContext& context)
 
   // Draw blinking star overlay
   if (invincible_timer.started() &&
-     (invincible_timer.get_left() > TUX_INVINCIBLE_TIME_WARNING || global_frame_counter % 3))
+     (invincible_timer.get_left() > TUX_INVINCIBLE_TIME_WARNING || global_frame_counter % 3)
+     && !dying)
   {
     if (size == SMALL || duck)
       smalltux_star->draw(context, pos, LAYER_OBJECTS + 2);