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 /landscape.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 'landscape.c')
-rw-r--r-- | landscape.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/landscape.c b/landscape.c index 753e24d48..e6608fa5e 100644 --- a/landscape.c +++ b/landscape.c @@ -174,11 +174,9 @@ uint GetPartialZ(int x, int y, Slope corners) uint GetSlopeZ(int x, int y) { - TileInfo ti; + TileIndex tile = TileVirtXY(x, y); - FindLandscapeHeight(&ti, x, y); - - return _tile_type_procs[ti.type]->get_slope_z_proc(&ti); + return _tile_type_procs[GetTileType(tile)]->get_slope_z_proc(tile, x, y); } |