1
0
Fork 0

(svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals.

release/0.7
peter1138 2008-08-07 07:48:57 +00:00
parent 8c7a450e98
commit a993a29b63
1 changed files with 2 additions and 0 deletions

View File

@ -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);
}