progsig: Fix test remove rail action clearing signal programs.
This could be triggered by using shift, using the land info window, etc.
This commit is contained in:
@@ -645,7 +645,7 @@ CommandCost CmdRemoveSingleRail(TileIndex tile, DoCommandFlag flags, uint32 p1,
|
||||
|
||||
/* Charge extra to remove signals on the track, if they are there */
|
||||
if (HasSignalOnTrack(tile, track)) {
|
||||
CheckRemoveSignal(tile, track);
|
||||
if (flags & DC_EXEC) CheckRemoveSignal(tile, track);
|
||||
cost.AddCost(DoCommand(tile, track, 0, flags, CMD_REMOVE_SIGNALS));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user