summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-04-24 17:23:32 +0000
committerrubidium <rubidium@openttd.org>2009-04-24 17:23:32 +0000
commitecdb5f46a7623fa5d2e79e7243a20916dc83be45 (patch)
treef96136f4e226c6bdc6b23e8d2c7f594140c93604
parent169a003e9a66dc23ea42b22c11b0f1f0b23fcd1f (diff)
downloadopenttd-ecdb5f46a7623fa5d2e79e7243a20916dc83be45.tar.xz
(svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though
-rw-r--r--src/viewport.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/viewport.cpp b/src/viewport.cpp
index 235fa7796..8e72a7036 100644
--- a/src/viewport.cpp
+++ b/src/viewport.cpp
@@ -2267,10 +2267,7 @@ void VpStartPlaceSizing(TileIndex tile, ViewportPlaceMethod method, ViewportDrag
if (_thd.place_mode == HT_RECT) {
_thd.place_mode = HT_SPECIAL;
_thd.next_drawstyle = HT_RECT;
- } else if (_thd.place_mode & HT_RAIL) {
- _thd.place_mode = HT_SPECIAL;
- _thd.next_drawstyle = HT_RAIL;
- } else if (_thd.place_mode & HT_LINE) {
+ } else if (_thd.place_mode & (HT_RAIL | HT_LINE)) {
_thd.place_mode = HT_SPECIAL;
_thd.next_drawstyle = _thd.drawstyle;
} else {