mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-30 18:09:09 +00:00
(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
This commit is contained in:
@@ -534,9 +534,12 @@ static void DrawTile_Clear(TileInfo *ti)
|
||||
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)
|
||||
|
Reference in New Issue
Block a user