progsig: Fix test remove rail action clearing signal programs.

This could be triggered by using shift, using the land info window, etc.
pull/3/head
Jonathan G Rennison 9 years ago
parent b2b9c0a070
commit 0577d7cbf8

@ -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));
}

Loading…
Cancel
Save