Fix building of road stops on town-owned one-way roads

See: https://github.com/OpenTTD/OpenTTD/issues/7626
This commit is contained in:
Jonathan G Rennison
2019-07-11 20:07:55 +01:00
parent dbc5f1baed
commit 2164eb4b12

View File

@@ -1059,7 +1059,7 @@ static CommandCost CheckFlatLandRoadStop(TileArea tile_area, DoCommandFlag flags
if (RoadTypeIsRoad(rt) && !HasPowerOnRoad(rt, road_rt)) return_cmd_error(STR_ERROR_NO_SUITABLE_ROAD);
if (GetDisallowedRoadDirections(cur_tile) != DRD_NONE) {
CommandCost ret = CheckOwnership(road_owner);
CommandCost ret = CheckOwnership(road_owner, cur_tile);
if (ret.Failed()) return ret;
}