summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaedhros <maedhros@openttd.org>2007-06-11 16:41:34 +0000
committermaedhros <maedhros@openttd.org>2007-06-11 16:41:34 +0000
commit560a542354827e21373ab9f300254078d8525e74 (patch)
tree98ff7a2205fed31a8ce4a182ffc8f7846f6747f2 /src
parent4ad6639475ab2f803236b6005198f2c4ae9e4c7c (diff)
downloadopenttd-560a542354827e21373ab9f300254078d8525e74.tar.xz
(svn r10103) -Fix (r10086): TrackBitsToTrack doesn't cope well with TRACK_BIT_NONE (e.g. non-rail tiles), so use FindFirstTrack instead.
Diffstat (limited to 'src')
-rw-r--r--src/rail_gui.cpp2
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;