landscape.c
changeset 4231 2823b3643862
parent 4191 d70efeb2733d
child 4238 4b58d6ea4e5b
--- a/landscape.c	Sun Aug 06 08:23:19 2006 +0000
+++ b/landscape.c	Sun Aug 06 16:32:49 2006 +0000
@@ -174,11 +174,9 @@
 
 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);
 }