summaryrefslogtreecommitdiff
path: root/src/tree_cmd.cpp
diff options
context:
space:
mode:
authorbelugas <belugas@openttd.org>2008-01-30 03:34:24 +0000
committerbelugas <belugas@openttd.org>2008-01-30 03:34:24 +0000
commit6ee4ed8bf98872f74417226fa6cfa9a02c609a40 (patch)
treeb25be0c2b78e4856dbb24ee6a70e415d68810b85 /src/tree_cmd.cpp
parent3e90a16cfc6e184d35132d55d6a7f96ab1257bac (diff)
downloadopenttd-6ee4ed8bf98872f74417226fa6cfa9a02c609a40.tar.xz
(svn r12018) -Fix(FS#1721,r9563): Restore initial intent on the invisible tree while transparent building patch setting
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r--src/tree_cmd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp
index 6a9526958..7fc9c133c 100644
--- a/src/tree_cmd.cpp
+++ b/src/tree_cmd.cpp
@@ -428,7 +428,8 @@ static void DrawTile_Trees(TileInfo *ti)
StartSpriteCombine();
- if (!(IsTransparencySet(TO_TREES) && _patches.invisible_trees)) {
+ /* Do not draw trees when buildings are transparent and when the invisile trees patch is on */
+ if (!(_patches.invisible_trees && IsTransparencySet(TO_HOUSES))) {
TreeListEnt te[4];
uint i;