Mercurial > hg > openttd
diff src/town_cmd.cpp @ 7849:e6ee8bfd9045 draft
(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.
author | belugas <belugas@openttd.org> |
---|---|
date | Sat, 10 Nov 2007 01:17:15 +0000 (2007-11-10) |
parents | 066ed17e3036 |
children | 8dad3ff6a7a7 |
line wrap: on
line diff
--- a/src/town_cmd.cpp +++ b/src/town_cmd.cpp @@ -43,6 +43,7 @@ #include "misc/autoptr.hpp" #include "autoslope.h" #include "waypoint.h" +#include "transparency.h" /* Initialize the town-pool */ DEFINE_OLD_POOL_GENERIC(Town, Town) @@ -183,10 +184,10 @@ dcts->height, dcts->dz, ti->z, - HASBIT(_transparent_opt, TO_HOUSES) + IsTransparencySet(TO_HOUSES) ); - if (HASBIT(_transparent_opt, TO_HOUSES)) return; + if (IsTransparencySet(TO_HOUSES)) return; } {