Feature: [NewGRF] Allow higher max speeds for ships

This commit is contained in:
Koen Bussemaker
2023-04-28 21:23:59 +02:00
committed by rubidium42
parent 461d69a8f6
commit 5a55c4a934
7 changed files with 46 additions and 24 deletions

View File

@@ -3273,6 +3273,13 @@ bool AfterLoadGame()
}
}
if (IsSavegameVersionBefore(SLV_SHIP_ACCELERATION)) {
/* NewGRF acceleration information was added to ships. */
for (Ship *s : Ship::Iterate()) {
if (s->acceleration == 0) s->acceleration = ShipVehInfo(s->engine_type)->acceleration;
}
}
for (Company *c : Company::Iterate()) {
UpdateCompanyLiveries(c);
}