added setting network connection flag for network games
[rocksndiamonds.git] / src / network.c
index 2bbdf6b18b1277c576258cee3982775f379e858b..55e43e12207ad6e54094ba7b6dc685924ca4aa53 100644 (file)
@@ -704,9 +704,13 @@ static void HandleNetworkingDisconnect()
   SDLNet_TCP_DelSocket(rfds, sfd);
   SDLNet_TCP_Close(sfd);
 
-  network.enabled = FALSE;
   network_playing = FALSE;
 
+  network.enabled = FALSE;
+  network.connected = FALSE;
+
+  setup.network_mode = FALSE;
+
   for (i = 0; i < MAX_PLAYERS; i++)
     stored_player[i].connected_network = FALSE;
 }