diff options
author | tron <tron@openttd.org> | 2004-11-23 22:36:11 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2004-11-23 22:36:11 +0000 |
commit | e8537f5512efde0c25833d22c61eee38fd9e56a6 (patch) | |
tree | 916a7e2673168f957b474a280a9df80af52ee64a /tunnelbridge_cmd.c | |
parent | 06158be67436572e95b0bc4069475792fe525b79 (diff) | |
download | openttd-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 'tunnelbridge_cmd.c')
-rw-r--r-- | tunnelbridge_cmd.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tunnelbridge_cmd.c b/tunnelbridge_cmd.c index 744b0e08b..1e1d61fa0 100644 --- a/tunnelbridge_cmd.c +++ b/tunnelbridge_cmd.c @@ -936,7 +936,7 @@ static void DrawBridgePillars(TileInfo *ti, int x, int y, int z) image = b[12 + (ti->map5&0x01)]; piece = _map2[ti->tile]&0xF; if (image != 0 && piece != 0) { - if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000; + if (_display_opt & DO_TRANS_BUILDINGS) image = (image & 0x3FFF) | 0x03224000; DrawGroundSpriteAt(image, x, y, z); } @@ -953,7 +953,7 @@ static void DrawBridgePillars(TileInfo *ti, int x, int y, int z) {2,4,8,1, 11,16,9,0}, }; - if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000; + if (_display_opt & DO_TRANS_BUILDINGS) image = (image & 0x3FFF) | 0x03224000; p = _tileh_bits[(image & 1) * 2 + (ti->map5&0x01)]; front_height = ti->z + ((ti->tileh & p[0])?8:0); @@ -1047,7 +1047,7 @@ static void DrawTile_TunnelBridge(TileInfo *ti) } // draw ramp - if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000; + if (_display_opt & DO_TRANS_BUILDINGS) image = (image & 0x3FFF) | 0x03224000; AddSortableSpriteToDraw(image, ti->x, ti->y, 16, 16, 7, ti->z); } else { // bridge middle part. @@ -1094,13 +1094,13 @@ static void DrawTile_TunnelBridge(TileInfo *ti) // draw rail image = b[0]; - if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000; + if (_display_opt & DO_TRANS_BUILDINGS) image = (image & 0x3FFF) | 0x03224000; AddSortableSpriteToDraw(image, ti->x, ti->y, (ti->map5&1)?11:16, (ti->map5&1)?16:11, 1, z); x = ti->x; y = ti->y; image = b[1]; - if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000; + if (_display_opt & DO_TRANS_BUILDINGS) image = (image & 0x3FFF) | 0x03224000; // draw roof if (ti->map5&1) { @@ -1115,7 +1115,7 @@ static void DrawTile_TunnelBridge(TileInfo *ti) // draw poles below for small bridges image = b[2]; if (image) { - if (!(_display_opt & DO_TRANS_BUILDINGS)) image = (image & 0x3FFF) | 0x03224000; + if (_display_opt & DO_TRANS_BUILDINGS) image = (image & 0x3FFF) | 0x03224000; DrawGroundSpriteAt(image, x, y, z); } } else if (_patches.bridge_pillars) { |