(svn r20717) -Fix [FS#4103]: water class was not set for stations

pull/155/head
yexo 14 years ago
parent d82f1b0bab
commit a10ce551c9

@ -2288,6 +2288,15 @@ bool AfterLoadGame()
}
}
if (CheckSavegameVersion(149)) {
for (TileIndex t = 0; t < map_size; t++) {
if (!IsTileType(t, MP_STATION)) continue;
if (!IsBuoy(t) && !IsOilRig(t) && !(IsDock(t) && GetTileSlope(t, NULL) == SLOPE_FLAT)) {
SetWaterClass(t, WATER_CLASS_INVALID);
}
}
}
/* Road stops is 'only' updating some caches */
AfterLoadRoadStops();
AfterLoadLabelMaps();

@ -533,6 +533,7 @@ static inline void MakeStation(TileIndex t, Owner o, StationID sid, StationType
{
SetTileType(t, MP_STATION);
SetTileOwner(t, o);
SetWaterClass(t, wc);
_m[t].m2 = sid;
_m[t].m3 = 0;
_m[t].m4 = 0;

Loading…
Cancel
Save