mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r12185) -Fix (r12177): wrong operator priority, hopefully harmless (spotted by michi_cc)
This commit is contained in:
parent
578e833284
commit
adf1227290
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user