diff options
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) { |