Update to 14.0-RC2
This commit is contained in:
@@ -547,11 +547,11 @@ static void StartScripts()
|
||||
|
||||
/* Start the AIs. */
|
||||
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);
|
||||
}
|
||||
|
||||
/* Start the GameScript. */
|
||||
Game::StartNew(false);
|
||||
Game::StartNew();
|
||||
|
||||
ShowScriptDebugWindowIfScriptError();
|
||||
}
|
||||
@@ -1771,6 +1771,11 @@ bool AfterLoadGame()
|
||||
if (!order->IsType(OT_GOTO_DEPOT)) continue;
|
||||
order->SetDepotActionType((OrderDepotActionFlags)(order->GetDepotActionType() >> 1));
|
||||
}
|
||||
|
||||
for (Vehicle *v : Vehicle::Iterate()) {
|
||||
if (!v->current_order.IsType(OT_GOTO_DEPOT)) continue;
|
||||
v->current_order.SetDepotActionType((OrderDepotActionFlags)(v->current_order.GetDepotActionType() >> 1));
|
||||
}
|
||||
}
|
||||
|
||||
/* The water class was moved/unified. */
|
||||
|
||||
Reference in New Issue
Block a user