Tint every grount/structure tile when using new highlights
This commit is contained in:
@@ -301,8 +301,7 @@ static void DrawTile_Town(TileInfo *ti)
|
||||
|
||||
if (ti->tileh != SLOPE_FLAT) DrawFoundation(ti, FOUNDATION_LEVELED);
|
||||
|
||||
auto zoning_pal = citymania::GetTownTileZoningPalette(ti->tile);
|
||||
DrawGroundSprite(dcts->ground.sprite, zoning_pal == PAL_NONE ? dcts->ground.pal : zoning_pal);
|
||||
DrawGroundSprite(dcts->ground.sprite, dcts->ground.pal);
|
||||
|
||||
/* If houses are invisible, do not draw the upper part */
|
||||
if (IsInvisibilitySet(TO_HOUSES)) return;
|
||||
@@ -310,7 +309,7 @@ static void DrawTile_Town(TileInfo *ti)
|
||||
/* Add a house on top of the ground? */
|
||||
SpriteID image = dcts->building.sprite;
|
||||
if (image != 0) {
|
||||
AddSortableSpriteToDraw(image, zoning_pal == PAL_NONE ? dcts->building.pal : zoning_pal,
|
||||
AddSortableSpriteToDraw(image, dcts->building.pal,
|
||||
ti->x + dcts->subtile_x,
|
||||
ti->y + dcts->subtile_y,
|
||||
dcts->width,
|
||||
|
||||
Reference in New Issue
Block a user