(svn r19412) -Codechange (r9942): One pair of parentheses is enough.

This commit is contained in:
alberth 2010-03-13 20:03:58 +00:00
parent 1b04eeb6f0
commit 5e7c4398ae

View File

@ -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 */ /* Only pay for the upgrade on one side of the bridges and tunnels */
if (IsTileType(tile, MP_TUNNELBRIDGE)) { if (IsTileType(tile, MP_TUNNELBRIDGE)) {
if (IsBridge(tile)) { if (IsBridge(tile)) {
if ((!had_bridge || GetTunnelBridgeDirection(tile) == dir)) { if (!had_bridge || GetTunnelBridgeDirection(tile) == dir) {
cost.AddCost(ret); cost.AddCost(ret);
} }
had_bridge = true; had_bridge = true;
} else { // IsTunnel(tile) } else { // IsTunnel(tile)
if ((!had_tunnel || GetTunnelBridgeDirection(tile) == dir)) { if (!had_tunnel || GetTunnelBridgeDirection(tile) == dir) {
cost.AddCost(ret); cost.AddCost(ret);
} }
had_tunnel = true; had_tunnel = true;