diff options
-rw-r--r-- | src/rail_cmd.cpp | 4 |
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; |