Changeset - r23816:d7be16529890
[Not reviewed]
master
0 1 0
Daniel Lee - 5 years ago 2019-06-26 02:17:17
dan.ddm999@gmail.com
Fix #7626: Allow building drive-through stops over one-way/blocked roads owned by towns (instead of crashing).
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/station_cmd.cpp
Show inline comments
 
@@ -1005,7 +1005,7 @@ static CommandCost CheckFlatLandRoadStop
 

	
 
					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;
 
					}
0 comments (0 inline, 0 general)