diff options
author | smatz <smatz@openttd.org> | 2008-02-18 23:37:16 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-02-18 23:37:16 +0000 |
commit | adf1227290bb10997a8a274b22f8a1cc310d7757 (patch) | |
tree | e7947a7c8854132266e56e094e67393917eb171d /src | |
parent | 578e8332848f6fd856177d573cf2369c4860d019 (diff) | |
download | openttd-adf1227290bb10997a8a274b22f8a1cc310d7757.tar.xz |
(svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc)
Diffstat (limited to 'src')
-rw-r--r-- | src/road_cmd.cpp | 2 |
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; |