From 2dc2e1d92104bcf3613e745a395f1c9202dc9508 Mon Sep 17 00:00:00 2001 From: Ricardo Cruz Date: Mon, 13 Sep 2004 22:45:44 +0000 Subject: [PATCH] Bug fix: on incencible mode, stars were being drawn even when player was in dying sequence (ie. when fall). SVN-Revision: 1902 --- src/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.11.0