From 8fd731f280a5237bfb8b6ec3e2be70e45df2ec53 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 24 Aug 2018 23:09:07 +0200 Subject: [PATCH] prepared level number in game panel for network games --- src/game.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.34.1