File diff r1108:5ffe440bcfdc → r1109:6c0cc4a443a2
ttd.c
Show inline comments
 
@@ -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();