changeset 4231 | 2823b3643862 |
parent 4157 | 8d0051fdde68 |
child 4300 | c7e43c47a2b9 |
--- a/clear_cmd.c Sun Aug 06 08:23:19 2006 +0000 +++ b/clear_cmd.c Sun Aug 06 16:32:49 2006 +0000 @@ -534,9 +534,12 @@ DrawClearLandFence(ti); } -static uint GetSlopeZ_Clear(const TileInfo* ti) +static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y) { - return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; + uint z; + uint tileh = GetTileSlope(tile, &z); + + return z + GetPartialZ(x & 0xF, y & 0xF, tileh); } static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh)