diff --git a/src/pathfinder/yapf/yapf_ship.cpp b/src/pathfinder/yapf/yapf_ship.cpp index 4552c0141b..6a34d5dc89 100644 --- a/src/pathfinder/yapf/yapf_ship.cpp +++ b/src/pathfinder/yapf/yapf_ship.cpp @@ -289,7 +289,7 @@ public: return result; } - return INVALID_TRACKDIR; + NOT_REACHED(); } /** diff --git a/src/road_cmd.cpp b/src/road_cmd.cpp index 73dd252cb6..a804e84570 100644 --- a/src/road_cmd.cpp +++ b/src/road_cmd.cpp @@ -657,8 +657,6 @@ CommandCost CmdBuildRoad(DoCommandFlags flags, TileIndex tile, RoadBits pieces, if ((existing & pieces) == pieces) { /* We only want to set the (dis)allowed road directions */ if (toggle_drd != DRD_NONE && rtt == RTT_ROAD) { - if (crossing) return CommandCost(STR_ERROR_ONEWAY_ROADS_CAN_T_HAVE_JUNCTION); - Owner owner = GetRoadOwner(tile, rtt); if (owner != OWNER_NONE) { CommandCost ret = CheckOwnership(owner, tile);