prepared level number in game panel for network games
authorHolger Schemel <info@artsoft.org>
Fri, 24 Aug 2018 21:09:07 +0000 (23:09 +0200)
committerHolger Schemel <info@artsoft.org>
Fri, 24 Aug 2018 21:26:01 +0000 (23:26 +0200)
src/game.c

index e1522b58bb844136786b4113ee247df34506cfdb..125e1666e309293488566ae1a6a3677a258cdeba 100644 (file)
@@ -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;