From bab70a823dd810e1d4477f0c01d3a7b3e9b19ac8 Mon Sep 17 00:00:00 2001 From: alberth Date: Mon, 1 Jun 2009 11:43:36 +0000 Subject: (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. --- src/rail_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/rail_cmd.cpp') diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index fa869a9ff..a17dbb6c6 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -134,7 +134,7 @@ static bool CheckTrackCombination(TileIndex tile, TrackBits to_build, uint flags } /* Let's see if we may build this */ - if (flags & DC_NO_RAIL_OVERLAP || HasSignals(tile)) { + if ((flags & DC_NO_RAIL_OVERLAP) || HasSignals(tile)) { /* If we are not allowed to overlap (flag is on for ai companies or we have * signals on the tile), check that */ return future == TRACK_BIT_HORZ || future == TRACK_BIT_VERT; -- cgit v1.2.3-54-g00ecf