equal
deleted
inserted
replaced
532 } |
532 } |
533 |
533 |
534 DrawClearLandFence(ti); |
534 DrawClearLandFence(ti); |
535 } |
535 } |
536 |
536 |
537 static uint GetSlopeZ_Clear(const TileInfo* ti) |
537 static uint GetSlopeZ_Clear(TileIndex tile, uint x, uint y) |
538 { |
538 { |
539 return GetPartialZ(ti->x & 0xF, ti->y & 0xF, ti->tileh) + ti->z; |
539 uint z; |
|
540 uint tileh = GetTileSlope(tile, &z); |
|
541 |
|
542 return z + GetPartialZ(x & 0xF, y & 0xF, tileh); |
540 } |
543 } |
541 |
544 |
542 static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh) |
545 static Slope GetSlopeTileh_Clear(TileIndex tile, Slope tileh) |
543 { |
546 { |
544 return tileh; |
547 return tileh; |