(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo

This commit is contained in:
tron
2006-08-06 16:32:49 +00:00
parent fb251d18e0
commit d8b8035f9f
14 changed files with 61 additions and 49 deletions

View File

@@ -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);
}