- SendToServer_PlayerName(setup.player_name);
- SendToServer_ProtocolVersion();
- SendToServer_NrWanted(setup.network_player_nr + 1);
-#endif
+ if (game_status == GAME_MODE_LOADING)
+ DrawProgramInfo();
+
+ if (!ConnectToServer(network.server_host, network.server_port))
+ {
+ network.enabled = FALSE;
+
+ setup.network_mode = FALSE;
+ }
+ else
+ {
+ SendToServer_ProtocolVersion();
+ SendToServer_PlayerName(setup.player_name);
+ SendToServer_NrWanted(setup.network_player_nr + 1);
+
+ network.connected = TRUE;
+ }
+
+ /* short time to recognize result of network initialization */
+ if (game_status == GAME_MODE_LOADING)
+ Delay_WithScreenUpdates(1000);