diff options
author | smatz <smatz@openttd.org> | 2008-04-03 19:55:40 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-03 19:55:40 +0000 |
commit | fcf4a7067d529d2f43d26be48cdc7daf395eddb1 (patch) | |
tree | 6e5ae7f6b1b5f40dbc7a0e75f50db327a96a8b37 /src/newgrf_house.cpp | |
parent | b8e3bbe0396072f0574b3b335386762146fbff93 (diff) | |
download | openttd-fcf4a7067d529d2f43d26be48cdc7daf395eddb1.tar.xz |
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
Diffstat (limited to 'src/newgrf_house.cpp')
-rw-r--r-- | src/newgrf_house.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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; |