summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-03-27 15:29:42 +0000
committerrubidium <rubidium@openttd.org>2008-03-27 15:29:42 +0000
commit63ab877c2763392008c9446dcd172880f2587745 (patch)
tree826e422a8c419570d4de6ad81686f1aec0718072 /src/road_cmd.cpp
parent2405ffd8557370d8af8e34e6b7c14e2b69ac19c1 (diff)
downloadopenttd-63ab877c2763392008c9446dcd172880f2587745.tar.xz
(svn r12443) -Add: OpenTTDs version to openttd.cfg, just so we do not need to keep to ask people for their version number because it's likely they give you the wrong answer anyway.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r--src/road_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 60bcf85c2..7906650ab 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -235,9 +235,9 @@ static CommandCost RemoveRoad(TileIndex tile, uint32 flags, RoadBits pieces, Roa
* @li on steep slopes
* @li if the bits of the other roadtypes result in another foundation
* @li if build on slopes is disabled */
- if (IsSteepSlope(tileh) || IsStraightRoad(other) &&
- (other & _invalid_tileh_slopes_road[0][tileh & SLOPE_ELEVATED]) != ROAD_NONE ||
- tileh != SLOPE_FLAT && !_patches.build_on_slopes) {
+ if (IsSteepSlope(tileh) || (IsStraightRoad(other) &&
+ (other & _invalid_tileh_slopes_road[0][tileh & SLOPE_ELEVATED]) != ROAD_NONE) ||
+ (tileh != SLOPE_FLAT && !_patches.build_on_slopes)) {
pieces |= MirrorRoadBits(pieces);
}