From febc5150c9ee3f2df2a1cad8ef527d9541697b22 Mon Sep 17 00:00:00 2001 From: smatz Date: Thu, 3 Apr 2008 19:55:40 +0000 Subject: (svn r12547) -Feature: invisibility options to make objects invisible instead of transparent --- src/town_cmd.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/town_cmd.cpp') diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 041f9bddd..4a26c177b 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -189,6 +189,9 @@ static void DrawTile_Town(TileInfo *ti) pal = dcts->ground.pal; DrawGroundSprite(image, pal); + /* If houses are invisible, do not draw the upper part */ + if (IsInvisibilitySet(TO_HOUSES)) return; + /* Add a house on top of the ground? */ image = dcts->building.sprite; if (image != 0) { -- cgit v1.2.3-54-g00ecf