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