From: Holger Schemel Date: Sat, 4 Nov 2017 00:20:46 +0000 (+0100) Subject: fixed bug causing crash when playing levels with 'time orb bug' X-Git-Tag: 4.1.0.0~69 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=7f515c3d57a5cc2d551564531c75f7be2e15c863;p=rocksndiamonds.git fixed bug causing crash when playing levels with 'time orb bug' --- diff --git a/src/game.c b/src/game.c index 1de51be5..02331879 100644 --- a/src/game.c +++ b/src/game.c @@ -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;