|
@@ -883,14 +883,12 @@ static void DrawTile_TunnelBridge(TileIn
|
|
|
catenary = true;
|
|
|
StartSpriteCombine();
|
|
|
AddSortableSpriteToDraw(SPR_TRAMWAY_TUNNEL_WIRES + tunnelbridge_direction, PAL_NONE, ti->x, ti->y, BB_data[10], BB_data[11], TILE_HEIGHT, ti->z, IsTransparencySet(TO_CATENARY), BB_data[8], BB_data[9], BB_Z_SEPARATOR);
|
|
|
}
|
|
|
}
|
|
|
} else if (!IsInvisibilitySet(TO_CATENARY) && HasCatenary(GetRailType(ti->tile))) {
|
|
|
DrawCatenary(ti);
|
|
|
|
|
|
catenary = true;
|
|
|
StartSpriteCombine();
|
|
|
DrawCatenaryOnTunnel(ti);
|
|
|
}
|
|
|
|
|
|
AddSortableSpriteToDraw(image + 1, PAL_NONE, ti->x + TILE_SIZE - 1, ti->y + TILE_SIZE - 1, BB_data[0], BB_data[1], TILE_HEIGHT, ti->z, false, BB_data[2], BB_data[3], BB_Z_SEPARATOR);
|
|
@@ -1086,13 +1084,13 @@ void DrawBridgeMiddle(const TileInfo* ti
|
|
|
DrawBridgeTramBits(x, y, bridge_z, axis ^ 1, HasBit(rts, ROADTYPE_ROAD), false);
|
|
|
} else {
|
|
|
EndSpriteCombine();
|
|
|
StartSpriteCombine();
|
|
|
}
|
|
|
} else if (HasCatenary(GetRailType(rampsouth))) {
|
|
|
DrawCatenary(ti);
|
|
|
DrawCatenaryOnBridge(ti);
|
|
|
}
|
|
|
|
|
|
/* draw roof, the component of the bridge which is logically between the vehicle and the camera */
|
|
|
if (!IsInvisibilitySet(TO_BRIDGES)) {
|
|
|
if (axis == AXIS_X) {
|
|
|
y += 12;
|