Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing).

This commit is contained in:
Daniel Lee
2019-06-26 03:17:17 +01:00
committed by Charles Pigott
parent 83f1839e71
commit da086a3fde

View File

@@ -996,7 +996,7 @@ static CommandCost CheckFlatLandRoadStop(TileArea tile_area, DoCommandFlag flags
}
num_roadbits += CountBits(GetRoadBits(cur_tile, ROADTYPE_ROAD));
if (GetDisallowedRoadDirections(cur_tile) != DRD_NONE) {
if (GetDisallowedRoadDirections(cur_tile) != DRD_NONE && road_owner != OWNER_TOWN) {
CommandCost ret = CheckOwnership(road_owner);
if (ret.Failed()) return ret;
}