From: Ricardo Cruz Date: Mon, 13 Sep 2004 22:45:44 +0000 (+0000) Subject: Bug fix: on incencible mode, stars were being drawn even when player was in dying... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=2dc2e1d92104bcf3613e745a395f1c9202dc9508;p=supertux.git Bug fix: on incencible mode, stars were being drawn even when player was in dying sequence (ie. when fall). SVN-Revision: 1902 --- diff --git a/src/player.cpp b/src/player.cpp index 5fec5587a..d055a1e59 100644 --- a/src/player.cpp +++ b/src/player.cpp @@ -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);