forked from mirror/OpenTTD
(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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
{
|
||||
|
Reference in New Issue
Block a user