diff options
author | tron <tron@openttd.org> | 2006-08-06 16:32:49 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-08-06 16:32:49 +0000 |
commit | 3254155930feb807f81031ebfdc9acedbe33745e (patch) | |
tree | f588dd076c3c98d0c2983a7f5c9e5f5dcbc4447b /station_cmd.c | |
parent | 7c9165827eb64c74efbad0198e97fe1a77fdb258 (diff) | |
download | openttd-3254155930feb807f81031ebfdc9acedbe33745e.tar.xz |
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
Diffstat (limited to 'station_cmd.c')
-rw-r--r-- | station_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/station_cmd.c b/station_cmd.c index 1e8a4ea12..305364df6 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2152,9 +2152,9 @@ void StationPickerDrawSprite(int x, int y, RailType railtype, int image) } } -static uint GetSlopeZ_Station(const TileInfo* ti) +static uint GetSlopeZ_Station(TileIndex tile, uint x, uint y) { - return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : TILE_HEIGHT); + return GetTileMaxZ(tile); } static Slope GetSlopeTileh_Station(TileIndex tile, Slope tileh) |