# HG changeset patch # User smatz # Date 1203377836 0 # Node ID 850d589306620b85188cf4be8b6c57f1d042e41b # Parent 2c53d86fd9ab31d8d0c2dbf8cb46939fa6955287 (svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc) diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -1332,7 +1332,7 @@ 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;