mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-24 15:09:10 +00:00
(svn r19869) -Fix [FS#3819]: when a connection gets lost and a game with AIs was loaded the client might crash due to the AIs not being loaded while the game loop is executed
This commit is contained in:
@@ -936,7 +936,10 @@ void NetworkDisconnect(bool blocking)
|
||||
NetworkClose();
|
||||
}
|
||||
|
||||
/* Receives something from the network */
|
||||
/**
|
||||
* Receives something from the network.
|
||||
* @return true if everthing went fine, false when the connection got closed.
|
||||
*/
|
||||
static bool NetworkReceive()
|
||||
{
|
||||
NetworkClientSocket *cs;
|
||||
@@ -991,7 +994,7 @@ static bool NetworkReceive()
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
return _networking;
|
||||
}
|
||||
|
||||
/* This sends all buffered commands (if possible) */
|
||||
|
Reference in New Issue
Block a user