mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: Clear one way state when removing road from road+tram tile
This commit is contained in:
parent
97e2bc612c
commit
c1b421c0c3
|
@ -467,6 +467,7 @@ static CommandCost RemoveRoad(TileIndex tile, DoCommandFlag flags, RoadBits piec
|
||||||
const Town *town = CalcClosestTownFromTile(tile);
|
const Town *town = CalcClosestTownFromTile(tile);
|
||||||
SetTownIndex(tile, town == nullptr ? INVALID_TOWN : town->index);
|
SetTownIndex(tile, town == nullptr ? INVALID_TOWN : town->index);
|
||||||
}
|
}
|
||||||
|
if (rtt == RTT_ROAD) SetDisallowedRoadDirections(tile, DRD_NONE);
|
||||||
SetRoadBits(tile, ROAD_NONE, rtt);
|
SetRoadBits(tile, ROAD_NONE, rtt);
|
||||||
SetRoadType(tile, rtt, INVALID_ROADTYPE);
|
SetRoadType(tile, rtt, INVALID_ROADTYPE);
|
||||||
MarkTileDirtyByTile(tile);
|
MarkTileDirtyByTile(tile);
|
||||||
|
|
Loading…
Reference in New Issue