(svn r19483) -Codechange: Code layout fixes, and parentheses reduction.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
Reference in New Issue
Block a user