diff options
author | peter1138 <peter1138@openttd.org> | 2008-08-07 07:48:57 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-08-07 07:48:57 +0000 |
commit | f7ea5b51e7454a42202393881292c0b8b52923d2 (patch) | |
tree | ef2f6d81ffce972dfe63b344c91afb2507a40a75 /src | |
parent | d27984b79c01c4971a30dbf0895b595ab5a41398 (diff) | |
download | openttd-f7ea5b51e7454a42202393881292c0b8b52923d2.tar.xz |
(svn r14012) -Fix (r13936): Don't copy pre-signal type when dragging signals.
Diffstat (limited to 'src')
-rw-r--r-- | src/rail_cmd.cpp | 2 |
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); } |