mirror of https://github.com/OpenTTD/OpenTTD
(svn r23348) -Fix [FS#4679]: make signal removal behaviour work the same regardless of autofill, i.e. always removal all signals instead those at the signal interval
parent
cdb574b9d1
commit
06fe032a7b
|
@ -1221,7 +1221,7 @@ static CommandCost CmdSignalTrackHelper(TileIndex tile, DoCommandFlag flags, uin
|
||||||
bool had_success = false;
|
bool had_success = false;
|
||||||
for (;;) {
|
for (;;) {
|
||||||
/* only build/remove signals with the specified density */
|
/* only build/remove signals with the specified density */
|
||||||
if ((remove && autofill) || signal_ctr % signal_density == 0) {
|
if (remove || signal_ctr % signal_density == 0) {
|
||||||
uint32 p1 = GB(TrackdirToTrack(trackdir), 0, 3);
|
uint32 p1 = GB(TrackdirToTrack(trackdir), 0, 3);
|
||||||
SB(p1, 3, 1, mode);
|
SB(p1, 3, 1, mode);
|
||||||
SB(p1, 4, 1, semaphores);
|
SB(p1, 4, 1, semaphores);
|
||||||
|
|
Loading…
Reference in New Issue