summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-08-07 07:48:57 +0000
committerpeter1138 <peter1138@openttd.org>2008-08-07 07:48:57 +0000
commita993a29b63ff2787538d85df9690b87c408204ae (patch)
treeef2f6d81ffce972dfe63b344c91afb2507a40a75
parent8c7a450e982540aa178afe6845f78d04df53a292 (diff)
downloadopenttd-a993a29b63ff2787538d85df9690b87c408204ae.tar.xz
(svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals.
-rw-r--r--src/rail_cmd.cpp2
1 files changed, 2 insertions, 0 deletions
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);
}