Clear rail ageing data on load.

This commit is contained in:
Jonathan G Rennison
2015-08-19 19:09:25 +01:00
parent 96ccd9333a
commit 88d45e5e2c
3 changed files with 11 additions and 0 deletions

View File

@@ -3152,6 +3152,15 @@ bool AfterLoadGame()
}
}
if (SlXvIsFeaturePresent(XSLFI_RAIL_AGEING)) {
/* remove rail aging data */
for (TileIndex t = 0; t < map_size; t++) {
if (IsPlainRailTile(t)) {
SB(_me[t].m7, 0, 8, 0);
}
}
}
/* Station acceptance is some kind of cache */
if (IsSavegameVersionBefore(127)) {
Station *st;