Mercurial > hg > openttd
changeset 9867:7e3f85c2fd92 draft
(svn r14013) -Fix [FS#2202]: do not allow extending signals by dragging in any direction other than the track direction.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 07 Aug 2008 13:07:51 +0000 |
parents | 008637ece727 |
children | d06bace3c21c |
files | src/rail_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1054,8 +1054,8 @@ track = TrackdirToTrack(trackdir); /* trackdir might have changed, keep track in sync */ Trackdir start_trackdir = trackdir; - /* Autofill must start on a valid track to be able to avoid loops */ - if (autofill && !HasTrack(tile, track)) return CMD_ERROR; + /* Must start on a valid track to be able to avoid loops */ + if (!HasTrack(tile, track)) return CMD_ERROR; SignalType sigtype = (SignalType)GB(p2, 7, 3); if (sigtype > SIGTYPE_LAST) return CMD_ERROR;