diff options
author | maedhros <maedhros@openttd.org> | 2007-06-11 16:41:34 +0000 |
---|---|---|
committer | maedhros <maedhros@openttd.org> | 2007-06-11 16:41:34 +0000 |
commit | 1dac46595d67543f3f8e4b3ed09a1b7f26644593 (patch) | |
tree | 98ff7a2205fed31a8ce4a182ffc8f7846f6747f2 | |
parent | 02b9eeaa7a1c53b665bb78049f370374b924837b (diff) | |
download | openttd-1dac46595d67543f3f8e4b3ed09a1b7f26644593.tar.xz |
(svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead.
-rw-r--r-- | src/rail_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index 10db2d61d..ff113c69a 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -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; } - Track track = TrackBitsToTrack(trackbits); + Track track = FindFirstTrack(trackbits); if (!_remove_button_clicked) { uint32 p1 = track; |