mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-31 18:39:10 +00:00
(svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals.
This commit is contained in:
@@ -1069,6 +1069,8 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, uint32 flags, uint32 p1,
|
|||||||
semaphores = GetSignalVariant(tile, track) != SIG_ELECTRIC;
|
semaphores = GetSignalVariant(tile, track) != SIG_ELECTRIC;
|
||||||
|
|
||||||
sigtype = GetSignalType(tile, track);
|
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
|
} else { // no signals exist, drag a two-way signal stretch
|
||||||
signals = IsPbsSignal(sigtype) ? SignalAlongTrackdir(trackdir) : SignalOnTrack(track);
|
signals = IsPbsSignal(sigtype) ? SignalAlongTrackdir(trackdir) : SignalOnTrack(track);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user