fixed bug causing crash when playing levels with 'time orb bug'
[rocksndiamonds.git] / 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;