(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:
maedhros 2007-06-11 16:41:34 +00:00
parent 4ad6639475
commit 560a542354

View File

@ -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;