Changeset - r16014:999bed67e1d8
[Not reviewed]
master
0 2 0
yexo - 14 years ago 2010-09-01 23:41:56
yexo@openttd.org
(svn r20717) -Fix [FS#4103]: water class was not set for stations
2 files changed with 10 insertions and 0 deletions:
0 comments (0 inline, 0 general)
src/saveload/afterload.cpp
Show inline comments
 
@@ -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();
src/station_map.h
Show inline comments
 
@@ -533,6 +533,7 @@ static inline void MakeStation(TileIndex
 
{
 
	SetTileType(t, MP_STATION);
 
	SetTileOwner(t, o);
 
	SetWaterClass(t, wc);
 
	_m[t].m2 = sid;
 
	_m[t].m3 = 0;
 
	_m[t].m4 = 0;
0 comments (0 inline, 0 general)