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 | 51d72c11c81059aa0d41db26c7158e2786893ae0 (patch) | |
tree | 56e95f5fe598d9097484013307aecd3c2c9821d0 /src/town_cmd.cpp | |
parent | 0340291888f6646f842cd27936032bf1e066b7ac (diff) | |
download | openttd-51d72c11c81059aa0d41db26c7158e2786893ae0.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/town_cmd.cpp')
-rw-r--r-- | src/town_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/town_cmd.cpp b/src/town_cmd.cpp index 482e7e5aa..ba2166fe8 100644 --- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -151,7 +151,7 @@ static void DrawTile_Town(TileInfo *ti) /* Add a house on top of the ground? */ image = dcts->building.sprite; if (image != 0) { - if (_display_opt & DO_TRANS_BUILDINGS) { + if (HASBIT(_transparent_opt, TO_HOUSES)) { SETBIT(image, PALETTE_MODIFIER_TRANSPARENT); pal = PALETTE_TO_TRANSPARENT; } else { @@ -167,7 +167,7 @@ static void DrawTile_Town(TileInfo *ti) ti->z ); - if (_display_opt & DO_TRANS_BUILDINGS) return; + if (HASBIT(_transparent_opt, TO_HOUSES)) return; } { |