[Super-tux-commit] supertux/src player.cpp,1.164,1.165
Brought to you by:
wkendrick
From: Ricardo C. <rm...@us...> - 2004-09-13 22:46:10
|
Update of /cvsroot/super-tux/supertux/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10151/src Modified Files: player.cpp Log Message: Bug fix: on incencible mode, stars were being drawn even when player was in dying sequence (ie. when fall). Index: player.cpp =================================================================== RCS file: /cvsroot/super-tux/supertux/src/player.cpp,v retrieving revision 1.164 retrieving revision 1.165 diff -u -d -r1.164 -r1.165 --- player.cpp 11 Sep 2004 13:31:37 -0000 1.164 +++ player.cpp 13 Sep 2004 22:45:44 -0000 1.165 @@ -870,7 +870,8 @@ // 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); |