diff options
author | peter1138 <peter1138@openttd.org> | 2007-04-05 07:49:04 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-04-05 07:49:04 +0000 |
commit | a2cec54c9d880243617b16972528e305d743014d (patch) | |
tree | 56e95f5fe598d9097484013307aecd3c2c9821d0 /src/tree_cmd.cpp | |
parent | abf88b687ccbc7e344b3eacf8a84c1f71cac73a3 (diff) | |
download | openttd-a2cec54c9d880243617b16972528e305d743014d.tar.xz |
(svn r9563) -Feature: Add more finer control to transparency options, including a new toolbar, accessible from the map menu or Ctrl X. Patch by Wolf01.
Diffstat (limited to 'src/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index 4168b73b1..74d3e5d02 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -368,7 +368,7 @@ static void DrawTile_Trees(TileInfo *ti) StartSpriteCombine(); - if (!(_display_opt & DO_TRANS_BUILDINGS) || !_patches.invisible_trees) { + if (!HASBIT(_transparent_opt, TO_TREES) || !_patches.invisible_trees) { TreeListEnt te[4]; uint i; @@ -377,7 +377,7 @@ static void DrawTile_Trees(TileInfo *ti) do { SpriteID image = s[0].sprite + (--i == 0 ? GetTreeGrowth(ti->tile) : 3); SpriteID pal; - if (_display_opt & DO_TRANS_BUILDINGS) { + if (HASBIT(_transparent_opt, TO_TREES)) { SETBIT(image, PALETTE_MODIFIER_TRANSPARENT); pal = PALETTE_TO_TRANSPARENT; } else { |