Changeset - r24295:ae0dcc3a6609
[Not reviewed]
master
0 1 0
ilayaraja97 - 4 years ago 2020-05-16 15:05:37
ilayaraja97@gmail.com
Fix #8131: small bridges also have pillars drawn
1 file changed with 1 insertions and 16 deletions:
0 comments (0 inline, 0 general)
src/tunnelbridge_cmd.cpp
Show inline comments
 
@@ -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);
 
}
 

	
 

	
0 comments (0 inline, 0 general)