summaryrefslogtreecommitdiff
path: root/unmovable_cmd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2004-11-23 22:36:11 +0000
committertron <tron@openttd.org>2004-11-23 22:36:11 +0000
commite8537f5512efde0c25833d22c61eee38fd9e56a6 (patch)
tree916a7e2673168f957b474a280a9df80af52ee64a /unmovable_cmd.c
parent06158be67436572e95b0bc4069475792fe525b79 (diff)
downloadopenttd-e8537f5512efde0c25833d22c61eee38fd9e56a6.tar.xz
(svn r787) Invert the sense of the DO_TRANS_BUILDINGS flag to be consistent with its own name and all other DO_* flags.
Now it is active-true.
Diffstat (limited to 'unmovable_cmd.c')
-rw-r--r--unmovable_cmd.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/unmovable_cmd.c b/unmovable_cmd.c
index 34f71bc9d..44700ab21 100644
--- a/unmovable_cmd.c
+++ b/unmovable_cmd.c
@@ -33,7 +33,7 @@ static void DrawTile_Unmovable(TileInfo *ti)
image = PLAYER_SPRITE_COLOR(_map_owner[ti->tile]);
image += 0x8A48;
- if (!(_display_opt & DO_TRANS_BUILDINGS))
+ if (_display_opt & DO_TRANS_BUILDINGS)
image = (image & 0x3FFF) | 0x3224000;
AddSortableSpriteToDraw(image, ti->x, ti->y, 16, 16, 25, ti->z);
} else if (ti->map5 == 3) {
@@ -59,7 +59,7 @@ static void DrawTile_Unmovable(TileInfo *ti)
dtus = &_draw_tile_unmovable_data[ti->map5];
image = dtus->image;
- if (!(_display_opt & DO_TRANS_BUILDINGS))
+ if (_display_opt & DO_TRANS_BUILDINGS)
image = (image & 0x3FFF) | 0x3224000;
AddSortableSpriteToDraw(image,
@@ -82,9 +82,9 @@ static void DrawTile_Unmovable(TileInfo *ti)
foreach_draw_tile_seq(dtss, t->seq) {
image = dtss->image;
if (_display_opt & DO_TRANS_BUILDINGS) {
- image |= ormod;
- } else {
image = (image & 0x3FFF) | 0x03224000;
+ } else {
+ image |= ormod;
}
AddSortableSpriteToDraw(image, ti->x + dtss->delta_x, ti->y + dtss->delta_y,
dtss->width, dtss->height, dtss->unk, ti->z + dtss->delta_z);