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 | febc5150c9ee3f2df2a1cad8ef527d9541697b22 (patch) | |
tree | 6e5ae7f6b1b5f40dbc7a0e75f50db327a96a8b37 /src/industry_cmd.cpp | |
parent | 83f9e141e038d1564ca2ed9d2ff034afbc948dbc (diff) | |
download | openttd-febc5150c9ee3f2df2a1cad8ef527d9541697b22.tar.xz |
(svn r12547) -Feature: invisibility options to make objects invisible instead of transparent
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 3886ddc0e..b2247e565 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -303,6 +303,9 @@ static void DrawTile_Industry(TileInfo *ti) DrawGroundSprite(image, pal); + /* If industries are transparent and invisible, do not draw the upper part */ + if (IsInvisibilitySet(TO_INDUSTRIES)) return; + /* Add industry on top of the ground? */ image = dits->building.sprite; if (image != 0) { |