Tint every grount/structure tile when using new highlights

This commit is contained in:
Pavel Stupnikov
2020-02-05 00:44:34 +03:00
parent a3890d4e5f
commit abbc38728e
12 changed files with 154 additions and 120 deletions

View File

@@ -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,