mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-08 23:19:40 +00:00
(svn r10504) -Codechange: Shorten the test if no track bit has been found
This commit is contained in:
parent
8b17441704
commit
5111c6205c
@ -640,6 +640,7 @@ static RoadBits GetTownRoadMask(TileIndex tile)
|
||||
TrackBits b = GetAnyRoadTrackBits(tile, ROADTYPE_ROAD);
|
||||
RoadBits r = ROAD_NONE;
|
||||
|
||||
if (b == TRACK_BIT_NONE) return r;
|
||||
if (b & TRACK_BIT_X) r |= ROAD_X;
|
||||
if (b & TRACK_BIT_Y) r |= ROAD_Y;
|
||||
if (b & TRACK_BIT_UPPER) r |= ROAD_NE | ROAD_NW;
|
||||
|
Loading…
Reference in New Issue
Block a user