Add a minimum visible height and no ground tile parameter to DrawTileProc.

Filter out tile parts which are entirely outside the drawing area.
This commit is contained in:
Jonathan G Rennison
2020-02-26 21:15:42 +00:00
parent 8ef367b126
commit 7949de2c05
13 changed files with 41 additions and 27 deletions

View File

@@ -284,7 +284,7 @@ static inline DiagDirection RandomDiagDir()
* Part of the tile loop process
* @param ti TileInfo of the tile to draw
*/
static void DrawTile_Town(TileInfo *ti)
static void DrawTile_Town(TileInfo *ti, DrawTileProcParams params)
{
HouseID house_id = GetHouseType(ti->tile);