diff options
author | alberth <alberth@openttd.org> | 2010-03-20 15:30:57 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-20 15:30:57 +0000 |
commit | f05a8635fdaea2bf3e9148a070d3750afbba8ebc (patch) | |
tree | 4a02a67c38cdf022a8c068ecb316dcbde16a640b /src/tunnelbridge_cmd.cpp | |
parent | 073f627930ba7816302afe10dcd2b44031c70fb6 (diff) | |
download | openttd-f05a8635fdaea2bf3e9148a070d3750afbba8ebc.tar.xz |
(svn r19483) -Codechange: Code layout fixes, and parentheses reduction.
Diffstat (limited to 'src/tunnelbridge_cmd.cpp')
-rw-r--r-- | src/tunnelbridge_cmd.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tunnelbridge_cmd.cpp b/src/tunnelbridge_cmd.cpp index 36d0c07b8..b2ef22ee2 100644 --- a/src/tunnelbridge_cmd.cpp +++ b/src/tunnelbridge_cmd.cpp @@ -87,9 +87,9 @@ int CalcBridgeLenCostFactor(int x) 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; + 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; return (HasSlopeHighestCorner(tileh) ? InclinedFoundation(axis) : FlatteningFoundation(tileh)); } |