From ecdb5f46a7623fa5d2e79e7243a20916dc83be45 Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 24 Apr 2009 17:23:32 +0000 Subject: [PATCH] (svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though --- src/viewport.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/viewport.cpp b/src/viewport.cpp index 235fa7796d..8e72a7036b 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 {