summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-08-07 13:07:51 +0000
committerrubidium <rubidium@openttd.org>2008-08-07 13:07:51 +0000
commitbf65e7e8f9767e2424c34e123d24b7d8da5ba037 (patch)
tree2f9ddc9308db45ff27f55775a69e75253529f2a6 /src
parenta993a29b63ff2787538d85df9690b87c408204ae (diff)
downloadopenttd-bf65e7e8f9767e2424c34e123d24b7d8da5ba037.tar.xz
(svn r14013) -Fix [FS#2202]: do not allow extending signals by dragging in any direction other than the track direction.
Diffstat (limited to 'src')
-rw-r--r--src/rail_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index f083e5c3f..26b24da8b 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -1054,8 +1054,8 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, uint32 flags, uint32 p1,
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;