mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 05:42:42 +00:00
(svn r14676) -Fix: Do not copy the signal type of parallel vertical/horizontal track, when dragging signals.
This commit is contained in:
parent
79e20448f8
commit
e259fa8ede
@ -1087,9 +1087,9 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, uint32 flags, uint32 p1,
|
||||
if (sigtype > SIGTYPE_LAST) return CMD_ERROR;
|
||||
|
||||
/* copy the signal-style of the first rail-piece if existing */
|
||||
if (HasSignals(tile)) {
|
||||
if (HasSignalOnTrack(tile, track)) {
|
||||
signals = GetPresentSignals(tile) & SignalOnTrack(track);
|
||||
if (signals == 0) signals = SignalOnTrack(track); /* Can this actually occur? */
|
||||
assert(signals != 0);
|
||||
|
||||
/* copy signal/semaphores style (independent of CTRL) */
|
||||
semaphores = GetSignalVariant(tile, track) != SIG_ELECTRIC;
|
||||
|
Loading…
Reference in New Issue
Block a user