mirror of https://github.com/OpenTTD/OpenTTD
parent
27cbb81df5
commit
4072dcff49
|
@ -544,14 +544,16 @@ static inline bool MayHaveBridgeAbove(TileIndex t)
|
||||||
*/
|
*/
|
||||||
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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue