From 5e7c4398ae8e1d9cbb511750abd3e37a4dcead77 Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 13 Mar 2010 20:03:58 +0000 Subject: [PATCH] (svn r19412) -Codechange (r9942): One pair of parentheses is enough. --- src/road_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index c7940cf7f8..ca711f7474 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;