summaryrefslogtreecommitdiff
path: root/src/rail_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-12-24 14:55:31 +0000
committeralberth <alberth@openttd.org>2010-12-24 14:55:31 +0000
commit9cdd8c6d48df88db74cb5c3f15f0797ea02496a0 (patch)
tree37e9a3f85c3f1c16dbd03d573667b32a2c686608 /src/rail_gui.cpp
parente930b9985d8b12a8b71d69c7897733626e4704c2 (diff)
downloadopenttd-9cdd8c6d48df88db74cb5c3f15f0797ea02496a0.tar.xz
(svn r21621) -Codechange: Only consider tile highlighting mode bits in tile selection functions.
Diffstat (limited to 'src/rail_gui.cpp')
-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 0e2f51e2a..df2ce0a26 100644
--- a/src/rail_gui.cpp
+++ b/src/rail_gui.cpp
@@ -382,7 +382,7 @@ static void HandleAutoSignalPlacement()
TileHighlightData *thd = &_thd;
uint32 p2 = GB(thd->drawstyle, 0, 3); // 0..5
- if (thd->drawstyle == HT_RECT) { // one tile case
+ if ((thd->drawstyle & HT_DRAG_MASK) == HT_RECT) { // one tile case
GenericPlaceSignals(TileVirtXY(thd->selend.x, thd->selend.y));
return;
}