(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.

This commit is contained in:
peter1138
2007-04-05 07:49:04 +00:00
parent 0340291888
commit 51d72c11c8
23 changed files with 212 additions and 49 deletions

View File

@@ -259,7 +259,7 @@ static void DrawTile_Industry(TileInfo *ti)
/* Add industry on top of the ground? */
image = dits->building.sprite;
if (image != 0) {
if (_display_opt & DO_TRANS_BUILDINGS) {
if (HASBIT(_transparent_opt, TO_INDUSTRIES)) {
SETBIT(image, PALETTE_MODIFIER_TRANSPARENT);
pal = PALETTE_TO_TRANSPARENT;
} else {
@@ -274,7 +274,7 @@ static void DrawTile_Industry(TileInfo *ti)
dits->dz,
z);
if (_display_opt & DO_TRANS_BUILDINGS) return;
if (HASBIT(_transparent_opt, TO_INDUSTRIES)) return;
}
{