forked from mirror/OpenTTD
Fix #7151: Hang when concurrently starting AIs in multiplayer, or with shift pressed.
This commit is contained in:
@@ -724,6 +724,10 @@ void OnTick_Companies()
|
||||
/* Allow multiple AIs to possibly start in the same tick. */
|
||||
do {
|
||||
if (!MaybeStartNewCompany()) break;
|
||||
|
||||
/* In networking mode, we can only send a command to start but it
|
||||
* didn't execute yet, so we cannot loop. */
|
||||
if (_networking) break;
|
||||
} while (AI::GetStartNextTime() == 0);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user