summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-02-18 23:37:16 +0000
committersmatz <smatz@openttd.org>2008-02-18 23:37:16 +0000
commit7a5855fec20496f474571d518d465a4e46127830 (patch)
treee7947a7c8854132266e56e094e67393917eb171d
parenta53594ebd4b88b568b796ff0fd27c3e303011090 (diff)
downloadopenttd-7a5855fec20496f474571d518d465a4e46127830.tar.xz
(svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc)
-rw-r--r--src/road_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp
index 5100e8f4f..433d362c6 100644
--- a/src/road_cmd.cpp
+++ b/src/road_cmd.cpp
@@ -1332,7 +1332,7 @@ static uint32 GetTileTrackStatus_Road(TileIndex tile, TransportType mode, uint s
RoadBits bits = GetRoadBits(tile, rt);
/* no roadbit at this side of tile, return 0 */
- if (side != INVALID_DIAGDIR && DiagDirToRoadBits(side) & bits == 0) return 0;
+ if (side != INVALID_DIAGDIR && (DiagDirToRoadBits(side) & bits) == 0) return 0;
uint multiplier = drd_to_multiplier[rt == ROADTYPE_TRAM ? DRD_NONE : GetDisallowedRoadDirections(tile)];
return HasRoadWorks(tile) ? 0 : _road_trackbits[bits] * multiplier;