summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilayaraja97 <ilayaraja97@gmail.com>2020-05-16 20:35:37 +0530
committerCharles Pigott <charlespigott@googlemail.com>2020-06-28 13:54:04 +0100
commitcf8ccf4b08a0ad27079b91cacd8af01112646aa4 (patch)
treedfe8be104f771e724633b3fd7e67e2bad2c8f170
parenta4a9908a51a00277eae764148b33095ffbf0699d (diff)
downloadopenttd-cf8ccf4b08a0ad27079b91cacd8af01112646aa4.tar.xz
Fix #8131: small bridges also have pillars drawn
-rw-r--r--src/tunnelbridge_cmd.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp
index c5e2f8d9b..1a66d530f 100644
--- a/src/tunnelbridge_cmd.cpp
+++ b/src/tunnelbridge_cmd.cpp
@@ -1623,22 +1623,7 @@ void DrawBridgeMiddle(const TileInfo *ti)
if (IsInvisibilitySet(TO_BRIDGES)) return;
psid++;
- if (ti->z + 5 == z) {
- /* draw poles below for small bridges */
- if (psid->sprite != 0) {
- SpriteID image = psid->sprite;
- SpriteID pal = psid->pal;
- if (IsTransparencySet(TO_BRIDGES)) {
- SetBit(image, PALETTE_MODIFIER_TRANSPARENT);
- pal = PALETTE_TO_TRANSPARENT;
- }
-
- DrawGroundSpriteAt(image, pal, x - ti->x, y - ti->y, z - ti->z);
- }
- } else {
- /* draw pillars below for high bridges */
- DrawBridgePillars(psid, ti, axis, drawfarpillar, x, y, z);
- }
+ DrawBridgePillars(psid, ti, axis, drawfarpillar, x, y, z);
}