projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cbd002
)
prepared level number in game panel for network games
author
Holger Schemel
<info@artsoft.org>
Fri, 24 Aug 2018 21:09:07 +0000
(23:09 +0200)
committer
Holger Schemel
<info@artsoft.org>
Fri, 24 Aug 2018 21:26:01 +0000
(23:26 +0200)
src/game.c
patch
|
blob
|
history
diff --git
a/src/game.c
b/src/game.c
index e1522b58bb844136786b4113ee247df34506cfdb..125e1666e309293488566ae1a6a3677a258cdeba 100644
(file)
--- a/
src/game.c
+++ b/
src/game.c
@@
-2224,7
+2224,8
@@
void UpdateGameControlValues()
/* update game panel control values */
- game_panel_controls[GAME_PANEL_LEVEL_NUMBER].value = level_nr;
+ /* use "level.file_info.nr" instead of "level_nr" (for network games) */
+ game_panel_controls[GAME_PANEL_LEVEL_NUMBER].value = level.file_info.nr;
game_panel_controls[GAME_PANEL_GEMS].value = gems;
game_panel_controls[GAME_PANEL_INVENTORY_COUNT].value = 0;