(svn r5794) Pass the TileIndex plus x and y coordinates into GetSlopeZ_* instead of a TileInfo
This commit is contained in:
@@ -267,9 +267,9 @@ static void DrawTile_Industry(TileInfo *ti)
|
||||
}
|
||||
}
|
||||
|
||||
static uint GetSlopeZ_Industry(const TileInfo *ti)
|
||||
static uint GetSlopeZ_Industry(TileIndex tile, uint x, uint y)
|
||||
{
|
||||
return ti->z + (ti->tileh == SLOPE_FLAT ? 0 : TILE_HEIGHT);
|
||||
return GetTileMaxZ(tile);
|
||||
}
|
||||
|
||||
static Slope GetSlopeTileh_Industry(TileIndex tile, Slope tileh)
|
||||
|
||||
Reference in New Issue
Block a user