From f7ea5b51e7454a42202393881292c0b8b52923d2 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Thu, 7 Aug 2008 07:48:57 +0000 Subject: (svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals. --- src/rail_cmd.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp index 73b12983d..f083e5c3f 100644 --- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1069,6 +1069,8 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, uint32 flags, uint32 p1, semaphores = GetSignalVariant(tile, track) != SIG_ELECTRIC; sigtype = GetSignalType(tile, track); + /* Don't but copy pre-signal type */ + if (sigtype < SIGTYPE_PBS) sigtype = SIGTYPE_NORMAL; } else { // no signals exist, drag a two-way signal stretch signals = IsPbsSignal(sigtype) ? SignalAlongTrackdir(trackdir) : SignalOnTrack(track); } -- cgit v1.2.3-70-g09d2