1
0
Fork 0

Codefix: remove some logically dead code

pull/13777/head
Rubidium 2025-03-09 08:55:35 +01:00 committed by rubidium42
parent 8f3bfb61bd
commit 02f1bc0880
2 changed files with 1 additions and 3 deletions

View File

@ -289,7 +289,7 @@ public:
return result;
}
return INVALID_TRACKDIR;
NOT_REACHED();
}
/**

View File

@ -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);