equal
deleted
inserted
replaced
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 { |