diff options
author | alberth <alberth@openttd.org> | 2010-03-13 20:03:58 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-03-13 20:03:58 +0000 |
commit | 5e7c4398ae8e1d9cbb511750abd3e37a4dcead77 (patch) | |
tree | 51c53020be31e920b1f731c1e5fdbfe89d1bc466 | |
parent | 1b04eeb6f08456aa2d2a50d28d1cea2004fbaa42 (diff) | |
download | openttd-5e7c4398ae8e1d9cbb511750abd3e37a4dcead77.tar.xz |
(svn r19412) -Codechange (r9942): One pair of parentheses is enough.
-rw-r--r-- | src/road_cmd.cpp | 4 |
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; |