(svn r16136) -Fix (r16095)[FS#2858]: sometimes autorail wouldn't work; seems to be primarily for OSX users though

This commit is contained in:
rubidium 2009-04-24 17:23:32 +00:00
parent 169a003e9a
commit ecdb5f46a7

View File

@ -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 {