forked from mirror/OpenTTD
Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing).
This commit is contained in:
committed by
Charles Pigott
parent
83f1839e71
commit
da086a3fde
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user