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
commit6acc3f6e59e7456cbcf7d1345dbbca70cc00e639 (patch)
tree2f9ddc9308db45ff27f55775a69e75253529f2a6 /src
parentf7ea5b51e7454a42202393881292c0b8b52923d2 (diff)
downloadopenttd-6acc3f6e59e7456cbcf7d1345dbbca70cc00e639.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;