diff options
author | belugas <belugas@openttd.org> | 2007-11-10 01:17:15 +0000 |
---|---|---|
committer | belugas <belugas@openttd.org> | 2007-11-10 01:17:15 +0000 |
commit | f55fdfb7c42b2e2e39b165fd17f7671e14516303 (patch) | |
tree | 07b6a8f97a15f768d33fc0b7a3405373f3745b3b /src/industry_cmd.cpp | |
parent | 3a84801f5563ca73c47c56f9682582abe990abb7 (diff) | |
download | openttd-f55fdfb7c42b2e2e39b165fd17f7671e14516303.tar.xz |
(svn r11399) -Feature(ette): transparency settings can now be saved and thus remembered.
-Codechange: Wrap all transparency settings in accessors, hiding the implementation
-Change: Clicking "transparent building" menu will toggle Houses And Trees only. The other options can be used in the transparency gui.
Initial patch by Smatz (FS#1349), with some rework by BigBB and your humble servant.
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index 4e846cec5..621495b94 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -38,6 +38,7 @@ #include "newgrf_callbacks.h" #include "misc/autoptr.hpp" #include "autoslope.h" +#include "transparency.h" void ShowIndustryViewWindow(int industry); void BuildOilRig(TileIndex tile); @@ -310,9 +311,9 @@ static void DrawTile_Industry(TileInfo *ti) dits->height, dits->dz, ti->z, - HASBIT(_transparent_opt, TO_INDUSTRIES)); + IsTransparencySet(TO_INDUSTRIES)); - if (HASBIT(_transparent_opt, TO_INDUSTRIES)) return; + if (IsTransparencySet(TO_INDUSTRIES)) return; } { |