Fix #8131: small bridges also have pillars drawn
This commit is contained in:

committed by
Charles Pigott

parent
a4a9908a51
commit
cf8ccf4b08
@@ -1623,23 +1623,8 @@ void DrawBridgeMiddle(const TileInfo *ti)
|
|||||||
if (IsInvisibilitySet(TO_BRIDGES)) return;
|
if (IsInvisibilitySet(TO_BRIDGES)) return;
|
||||||
|
|
||||||
psid++;
|
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);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static int GetSlopePixelZ_TunnelBridge(TileIndex tile, uint x, uint y)
|
static int GetSlopePixelZ_TunnelBridge(TileIndex tile, uint x, uint y)
|
||||||
|
Reference in New Issue
Block a user