From adf1227290bb10997a8a274b22f8a1cc310d7757 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 18 Feb 2008 23:37:16 +0000 Subject: (svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc) --- src/road_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf