mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead.
This commit is contained in:
parent
4ad6639475
commit
560a542354
@ -175,7 +175,7 @@ static void GenericPlaceSignals(TileIndex tile)
|
|||||||
trackbits = (_tile_fract_coords.x + _tile_fract_coords.y <= 15) ? TRACK_BIT_UPPER : TRACK_BIT_LOWER;
|
trackbits = (_tile_fract_coords.x + _tile_fract_coords.y <= 15) ? TRACK_BIT_UPPER : TRACK_BIT_LOWER;
|
||||||
}
|
}
|
||||||
|
|
||||||
Track track = TrackBitsToTrack(trackbits);
|
Track track = FindFirstTrack(trackbits);
|
||||||
|
|
||||||
if (!_remove_button_clicked) {
|
if (!_remove_button_clicked) {
|
||||||
uint32 p1 = track;
|
uint32 p1 = track;
|
||||||
|
Loading…
Reference in New Issue
Block a user