Merge remote-tracking branch 'upstream/master'

This commit is contained in:
dP
2023-04-11 00:02:31 +04:00
89 changed files with 1009 additions and 521 deletions

View File

@@ -585,14 +585,16 @@ void AfterLoadFindBTProCBInfo() {
*/
static void StartScripts()
{
/* Start the GameScript. */
Game::StartNew();
/* Script debug window requires AIs to be started before trying to start GameScript. */
/* Start the AIs. */
for (const Company *c : Company::Iterate()) {
if (Company::IsValidAiID(c->index)) AI::StartNew(c->index, false);
}
/* Start the GameScript. */
Game::StartNew();
ShowAIDebugWindowIfAIError();
}