landscape.c
changeset 4231 2823b3643862
parent 4191 d70efeb2733d
child 4238 4b58d6ea4e5b
equal deleted inserted replaced
4230:f4e93251e2f6 4231:2823b3643862
   172 	return z;
   172 	return z;
   173 }
   173 }
   174 
   174 
   175 uint GetSlopeZ(int x, int y)
   175 uint GetSlopeZ(int x, int y)
   176 {
   176 {
   177 	TileInfo ti;
   177 	TileIndex tile = TileVirtXY(x, y);
   178 
   178 
   179 	FindLandscapeHeight(&ti, x, y);
   179 	return _tile_type_procs[GetTileType(tile)]->get_slope_z_proc(tile, x, y);
   180 
       
   181 	return _tile_type_procs[ti.type]->get_slope_z_proc(&ti);
       
   182 }
   180 }
   183 
   181 
   184 
   182 
   185 static Slope GetFoundationSlope(TileIndex tile, uint* z)
   183 static Slope GetFoundationSlope(TileIndex tile, uint* z)
   186 {
   184 {