Fix #10831: Level crossing parts left barred after crossing tile removal (#10874)

This commit is contained in:
Jonathan G Rennison
2023-06-03 22:04:24 +01:00
committed by GitHub
parent cd751a598a
commit a2c0e6aa18
4 changed files with 43 additions and 3 deletions

View File

@@ -651,7 +651,7 @@ CommandCost CmdRemoveSingleRail(DoCommandFlag flags, TileIndex tile, Track track
cost.AddCost(RailClearCost(GetRailType(tile)));
if (flags & DC_EXEC) {
MarkDirtyAdjacentLevelCrossingTiles(tile, GetCrossingRoadAxis(tile));
UpdateAdjacentLevelCrossingTilesOnLevelCrossingRemoval(tile, GetCrossingRoadAxis(tile));
if (HasReservedTracks(tile, trackbit)) {
v = GetTrainForReservation(tile, track);