diff options
author | yexo <yexo@openttd.org> | 2010-08-05 12:06:53 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2010-08-05 12:06:53 +0000 |
commit | f8b7163b34e098082b6222768966620753c4ccae (patch) | |
tree | 9884422e6f80ad56a09a3059f8d333f6ee6d4c49 /src/station_map.h | |
parent | 2e6713ce956d42f55f0f6f34fe12ec8459dc0ab4 (diff) | |
download | openttd-f8b7163b34e098082b6222768966620753c4ccae.tar.xz |
(svn r20375) -Codechange: make sure the watertype for existing airport tiles is set to invalid
Diffstat (limited to 'src/station_map.h')
-rw-r--r-- | src/station_map.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/station_map.h b/src/station_map.h index ef4e243e1..4fc85d94b 100644 --- a/src/station_map.h +++ b/src/station_map.h @@ -640,10 +640,12 @@ static inline void MakeDriveThroughRoadStop(TileIndex t, Owner station, Owner ro * @param o the owner of the airport * @param sid the station to which this tile belongs * @param section the StationGfx to be used for this tile + * @param wc the type of water on this tile */ -static inline void MakeAirport(TileIndex t, Owner o, StationID sid, byte section) +static inline void MakeAirport(TileIndex t, Owner o, StationID sid, byte section, WaterClass wc) { MakeStation(t, o, sid, STATION_AIRPORT, section); + SetWaterClass(t, wc); } /** |