Changeset - r6863:184e256c91e5
[Not reviewed]
master
0 1 0
maedhros - 17 years ago 2007-06-11 16:41:34
maedhros@openttd.org
(svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/rail_gui.cpp
Show inline comments
 
@@ -172,13 +172,13 @@ static void GenericPlaceSignals(TileInde
 
	}
 

	
 
	if (trackbits & TRACK_BIT_HORZ) { // E-W direction
 
		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) {
 
		uint32 p1 = track;
 
		SB(p1, 3, 1, _ctrl_pressed);
 
		SB(p1, 4, 1, _cur_year < _patches.semaphore_build_before);
 

	
0 comments (0 inline, 0 general)