From: Holger Schemel Date: Fri, 24 Aug 2018 21:09:07 +0000 (+0200) Subject: prepared level number in game panel for network games X-Git-Tag: 4.1.1.0~57 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=8fd731f280a5237bfb8b6ec3e2be70e45df2ec53;p=rocksndiamonds.git prepared level number in game panel for network games --- diff --git a/src/game.c b/src/game.c index e1522b58..125e1666 100644 --- 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;