Mercurial > hg > openttd
changeset 9866:008637ece727 draft
(svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals.
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Thu, 07 Aug 2008 07:48:57 +0000 |
parents | 5aa8480f318a |
children | 7e3f85c2fd92 |
files | src/rail_cmd.cpp |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/rail_cmd.cpp +++ b/src/rail_cmd.cpp @@ -1069,6 +1069,8 @@ 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); }