* Determines if the track on a bridge ramp is flat or goes up/down. * * @param tileh Slope of the tile under the bridge head * @param axis Orientation of bridge * @return true iff the track is flat. */
| 129 | * @return true iff the track is flat. |
| 130 | */ |
| 131 | bool HasBridgeFlatRamp(Slope tileh, Axis axis) |
| 132 | { |
| 133 | ApplyFoundationToSlope(GetBridgeFoundation(tileh, axis), tileh); |
| 134 | /* If the foundation slope is flat the bridge has a non-flat ramp and vice versa. */ |
| 135 | return (tileh != SLOPE_FLAT); |
| 136 | } |
| 137 | |
| 138 | /** |
| 139 | * Test if bridge piece uses a custom sprite table. |
no test coverage detected