Update to 1.9.0-RC2

This commit is contained in:
Pavel Stupnikov
2019-03-27 18:06:52 +03:00
60 changed files with 983 additions and 659 deletions

View File

@@ -3126,6 +3126,13 @@ bool AfterLoadGame()
}
}
{
/* Update water class for trees for all current savegame versions. */
for (TileIndex t = 0; t < map_size; t++) {
if (IsTileType(t, MP_TREES)) SetWaterClass(t, GetTreeGround(t) == TREE_GROUND_SHORE ? WATER_CLASS_SEA : WATER_CLASS_INVALID);
}
}
/* Station acceptance is some kind of cache */
if (IsSavegameVersionBefore(SLV_127)) {
Station *st;