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/newgrf_house.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/newgrf_house.cpp') diff --git a/src/newgrf_house.cpp b/src/newgrf_house.cpp index 3eab86df4..4c8fae368 100644 --- a/src/newgrf_house.cpp +++ b/src/newgrf_house.cpp @@ -322,6 +322,9 @@ void DrawTileLayout(const TileInfo *ti, const SpriteGroup *group, byte stage, Ho if (GB(image, 0, SPRITE_WIDTH) != 0) DrawGroundSprite(image, pal); + /* End now, if houses are invisible */ + if (IsInvisibilitySet(TO_HOUSES)) return; + foreach_draw_tile_seq(dtss, dts->seq) { if (GB(dtss->image.sprite, 0, SPRITE_WIDTH) == 0) continue; -- cgit v1.2.3-54-g00ecf