summaryrefslogtreecommitdiff
path: root/src/road_cmd.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-03-13 20:03:58 +0000
committeralberth <alberth@openttd.org>2010-03-13 20:03:58 +0000
commit5e7c4398ae8e1d9cbb511750abd3e37a4dcead77 (patch)
tree51c53020be31e920b1f731c1e5fdbfe89d1bc466 /src/road_cmd.cpp
parent1b04eeb6f08456aa2d2a50d28d1cea2004fbaa42 (diff)
downloadopenttd-5e7c4398ae8e1d9cbb511750abd3e37a4dcead77.tar.xz
(svn r19412) -Codechange (r9942): One pair of parentheses is enough.
Diffstat (limited to 'src/road_cmd.cpp')
-rw-r--r--src/road_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index c7940cf7f..ca711f747 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -784,12 +784,12 @@ CommandCost CmdBuildLongRoad(TileIndex start_tile, DoCommandFlag flags, uint32 p
/* Only pay for the upgrade on one side of the bridges and tunnels */
if (IsTileType(tile, MP_TUNNELBRIDGE)) {
if (IsBridge(tile)) {
- if ((!had_bridge || GetTunnelBridgeDirection(tile) == dir)) {
+ if (!had_bridge || GetTunnelBridgeDirection(tile) == dir) {
cost.AddCost(ret);
}
had_bridge = true;
} else { // IsTunnel(tile)
- if ((!had_tunnel || GetTunnelBridgeDirection(tile) == dir)) {
+ if (!had_tunnel || GetTunnelBridgeDirection(tile) == dir) {
cost.AddCost(ret);
}
had_tunnel = true;