@@ -720,25 +720,25 @@ int ttd_main(int argc, char* argv[])
uint16 rport;
rport = NETWORK_DEFAULT_PORT;
ParseConnectionString(&player, &port, network_conn);
if (player != NULL) _network_playas = atoi(player);
if (port != NULL) rport = atoi(port);
LoadIntroGame();
_switch_mode = SM_NONE;
NetworkClientConnectGame(network_conn, rport);
}
#endif /* ENABLE_NETWORK */
while (_video_driver->main_loop() == ML_SWITCHDRIVER) {}
IConsoleFree();
#ifdef ENABLE_NETWORK
if (_network_available) {
// Shut down the network and close any open connections
NetworkDisconnect();
NetworkUDPClose();