# HG changeset patch # User Jonathan G Rennison # Date 2024-01-09 08:59:44 # Node ID 4267927a67adcfdb11fb7b5accc1666df5f975e7 # Parent 913b64f47f6615984cc5897e5e703022f0e1bc72 Fix: Clear one way state when removing road from road+tram tile diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -467,6 +467,7 @@ static CommandCost RemoveRoad(TileIndex const Town *town = CalcClosestTownFromTile(tile); SetTownIndex(tile, town == nullptr ? INVALID_TOWN : town->index); } + if (rtt == RTT_ROAD) SetDisallowedRoadDirections(tile, DRD_NONE); SetRoadBits(tile, ROAD_NONE, rtt); SetRoadType(tile, rtt, INVALID_ROADTYPE); MarkTileDirtyByTile(tile);