File diff r25941:1b35576e3e14 → r25942:fb8ed4e7ecae
src/openttd.cpp
Show inline comments
 
@@ -1444,24 +1444,26 @@ void GameLoop()
 

	
 
	/* switch game mode? */
 
	if (_switch_mode != SM_NONE && !HasModalProgress()) {
 
		SwitchToMode(_switch_mode);
 
		_switch_mode = SM_NONE;
 
	}
 

	
 
	IncreaseSpriteLRU();
 

	
 
	/* Check for UDP stuff */
 
	if (_network_available) NetworkBackgroundLoop();
 

	
 
	DebugSendRemoteMessages();
 

	
 
	if (_networking && !HasModalProgress()) {
 
		/* Multiplayer */
 
		NetworkGameLoop();
 
	} else {
 
		if (_network_reconnect > 0 && --_network_reconnect == 0) {
 
			/* This means that we want to reconnect to the last host
 
			 * We do this here, because it means that the network is really closed */
 
			NetworkClientConnectGame(_settings_client.network.last_joined, COMPANY_SPECTATOR);
 
		}
 
		/* Singleplayer */
 
		StateGameLoop();
 
	}