From e259fa8ede15303c6ef3c5f64ad0fbebe9a7eaeb Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 14 Dec 2008 19:52:55 +0000 Subject: (svn r14676) -Fix: Do not copy the signal type of parallel vertical/horizontal track, when dragging signals. --- src/rail_cmd.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rail_cmd.cpp') diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index cbe1e65ef..54380b7e7 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1087,9 +1087,9 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, uint32 flags, uint32 p1, if (sigtype > SIGTYPE_LAST) return CMD_ERROR; /* copy the signal-style of the first rail-piece if existing */ - if (HasSignals(tile)) { + if (HasSignalOnTrack(tile, track)) { signals = GetPresentSignals(tile) & SignalOnTrack(track); - if (signals == 0) signals = SignalOnTrack(track); /* Can this actually occur? */ + assert(signals != 0); /* copy signal/semaphores style (independent of CTRL) */ semaphores = GetSignalVariant(tile, track) != SIG_ELECTRIC; -- cgit v1.2.3-54-g00ecf