fixed changing to main menu after stopping network game only when playing
authorHolger Schemel <info@artsoft.org>
Sun, 1 Jul 2018 11:20:14 +0000 (13:20 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 1 Jul 2018 11:21:14 +0000 (13:21 +0200)
src/network.c

index 010e8b33f6c6bef3931c50b2cf5884ca0b52575c..656c0ab988d12c9e385205f31618d65b978584b2 100644 (file)
@@ -669,11 +669,11 @@ static void Handle_OP_STOP_PLAYING()
 
     if (buffer[2] != NETWORK_STOP_BY_PLAYER || stopped_by_remote_player)
       Request(message, REQ_CONFIRM | REQ_STAY_CLOSED);
-  }
 
-  SetGameStatus(GAME_MODE_MAIN);
+    SetGameStatus(GAME_MODE_MAIN);
 
-  DrawMainMenu();
+    DrawMainMenu();
+  }
 }
 
 static void Handle_OP_MOVE_PLAYER(unsigned int len)