(cherry picked from commit 4072dcff49
)
This commit is contained in:

committed by
Jonathan G Rennison

parent
ad6cd18cb4
commit
8b36b2cbf3
@@ -622,14 +622,16 @@ TileIndex GetOtherTunnelBridgeEndOld(TileIndex tile)
|
|||||||
*/
|
*/
|
||||||
static void StartScripts()
|
static void StartScripts()
|
||||||
{
|
{
|
||||||
/* Start the GameScript. */
|
/* Script debug window requires AIs to be started before trying to start GameScript. */
|
||||||
Game::StartNew();
|
|
||||||
|
|
||||||
/* Start the AIs. */
|
/* Start the AIs. */
|
||||||
for (const Company *c : Company::Iterate()) {
|
for (const Company *c : Company::Iterate()) {
|
||||||
if (Company::IsValidAiID(c->index)) AI::StartNew(c->index, false);
|
if (Company::IsValidAiID(c->index)) AI::StartNew(c->index, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Start the GameScript. */
|
||||||
|
Game::StartNew();
|
||||||
|
|
||||||
ShowScriptDebugWindowIfScriptError();
|
ShowScriptDebugWindowIfScriptError();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user