@@ -86,12 +86,18 @@ int CalcBridgeLenCostFactor(int length)
sum += delta;
length--;
}
/**
* Get the foundation for a bridge.
* @param tileh The slope to build the bridge on.
* @param axis The axis of the bridge entrace.
* @return The foundatiton required.
*/
Foundation GetBridgeFoundation(Slope tileh, Axis axis)
{
if (tileh == SLOPE_FLAT ||
((tileh == SLOPE_NE || tileh == SLOPE_SW) && axis == AXIS_X) ||
((tileh == SLOPE_NW || tileh == SLOPE_SE) && axis == AXIS_Y)) return FOUNDATION_NONE;
@@ -1205,13 +1211,16 @@ static BridgePieces CalcBridgePiece(uint
return south & 1 ? BRIDGE_PIECE_INNER_NORTH : BRIDGE_PIECE_INNER_SOUTH;
} else {
return north & 1 ? BRIDGE_PIECE_MIDDLE_EVEN : BRIDGE_PIECE_MIDDLE_ODD;
* Draw the middle bits of a bridge.
* @param ti Tile information of the tile to draw it on.
void DrawBridgeMiddle(const TileInfo *ti)
/* Sectional view of bridge bounding boxes:
*
* 1 2 1,2 = SpriteCombine of Bridge front/(back&floor) and TramCatenary
* 1 2 3 = empty helper BB