diff options
author | Daniel Lee <dan.ddm999@gmail.com> | 2019-06-26 03:17:17 +0100 |
---|---|---|
committer | Niels Martin Hansen <nielsm@indvikleren.dk> | 2019-09-06 23:21:40 +0200 |
commit | 2d9eb1c41742dee2b1d978302d97b6ab6ee6e2e6 (patch) | |
tree | b83a3d850b11deb05f8fd40a6f48a865cf4938c9 /src/station_cmd.cpp | |
parent | 058dadf315c3f9e2dac06a5c59866036ccc8e190 (diff) | |
download | openttd-2d9eb1c41742dee2b1d978302d97b6ab6ee6e2e6.tar.xz |
Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing).
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 46ded9a1d..b85c1e887 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1005,7 +1005,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) { + if (GetDisallowedRoadDirections(cur_tile) != DRD_NONE && road_owner != OWNER_TOWN) { CommandCost ret = CheckOwnership(road_owner); if (ret.Failed()) return ret; } |