Skip to content

Commit

Permalink
Fix OpenTTD#8131: small bridges also have pillars drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
ilayaraja97 authored and LordAro committed Jul 30, 2020
1 parent 430ce20 commit 2b587ca
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions src/tunnelbridge_cmd.cpp
Expand Up @@ -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);
}


Expand Down

0 comments on commit 2b587ca

Please sign in to comment.