From da086a3fde1e7ca711b8ba8093f3c5a959b4849a Mon Sep 17 00:00:00 2001 From: Daniel Lee <dan.ddm999@gmail.com> Date: Wed, 26 Jun 2019 03:17:17 +0100 Subject: [PATCH] Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing). --- src/station_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 1ba1f3847c..1796f2cc8e 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -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; }