projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35fe4b6
)
fixed bug causing crash when playing levels with 'time orb bug'
author
Holger Schemel
<info@artsoft.org>
Sat, 4 Nov 2017 00:20:46 +0000
(
01:20
+0100)
committer
Holger Schemel
<info@artsoft.org>
Fri, 23 Mar 2018 22:21:15 +0000
(23:21 +0100)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index 1de51be5b909b1e0cc2b0f735fa0e7f989fc7771..02331879311f3a7680e95bcd80e3a37148220f0e 100644
(file)
--- 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;