mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-09 19:10:38 +00:00
(svn r26110) -Codechange: add guard for enterdir being valid in signal code
This commit is contained in:
parent
8394abb2f5
commit
ae3a178a25
@ -294,6 +294,7 @@ static SigFlags ExploreSegment(Owner owner)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
assert(IsValidDiagDirection(enterdir));
|
||||||
TrackBits tracks = GetTrackBits(tile); // trackbits of tile
|
TrackBits tracks = GetTrackBits(tile); // trackbits of tile
|
||||||
TrackBits tracks_masked = (TrackBits)(tracks & _enterdir_to_trackbits[enterdir]); // only incidating trackbits
|
TrackBits tracks_masked = (TrackBits)(tracks & _enterdir_to_trackbits[enterdir]); // only incidating trackbits
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user