fixed bug causing crash when playing levels with 'time orb bug'
authorHolger Schemel <info@artsoft.org>
Sat, 4 Nov 2017 00:20:46 +0000 (01:20 +0100)
committerHolger Schemel <info@artsoft.org>
Fri, 23 Mar 2018 22:21:15 +0000 (23:21 +0100)
src/game.c

index 1de51be5b909b1e0cc2b0f735fa0e7f989fc7771..02331879311f3a7680e95bcd80e3a37148220f0e 100644 (file)
@@ -2308,7 +2308,7 @@ void UpdateGameControlValues()
   game_panel_controls[GAME_PANEL_TIME_MM].value = (time / 60) % 60;
   game_panel_controls[GAME_PANEL_TIME_SS].value = time % 60;
 
-  if (game.no_time_limit)
+  if (level.time == 0)
     game_panel_controls[GAME_PANEL_TIME_ANIM].value = 100;
   else
     game_panel_controls[GAME_PANEL_TIME_ANIM].value = time * 100 / level.time;