mirror of https://github.com/OpenTTD/OpenTTD
Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing).
parent
83f1839e71
commit
da086a3fde
|
@ -996,7 +996,7 @@ static CommandCost CheckFlatLandRoadStop(TileArea tile_area, DoCommandFlag flags
|
||||||
}
|
}
|
||||||
num_roadbits += CountBits(GetRoadBits(cur_tile, ROADTYPE_ROAD));
|
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);
|
CommandCost ret = CheckOwnership(road_owner);
|
||||||
if (ret.Failed()) return ret;
|
if (ret.Failed()) return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue