mirror of https://github.com/OpenTTD/OpenTTD
Codefix: remove some logically dead code
parent
8f3bfb61bd
commit
02f1bc0880
|
@ -289,7 +289,7 @@ public:
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
return INVALID_TRACKDIR;
|
NOT_REACHED();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -657,8 +657,6 @@ CommandCost CmdBuildRoad(DoCommandFlags flags, TileIndex tile, RoadBits pieces,
|
||||||
if ((existing & pieces) == pieces) {
|
if ((existing & pieces) == pieces) {
|
||||||
/* We only want to set the (dis)allowed road directions */
|
/* We only want to set the (dis)allowed road directions */
|
||||||
if (toggle_drd != DRD_NONE && rtt == RTT_ROAD) {
|
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);
|
Owner owner = GetRoadOwner(tile, rtt);
|
||||||
if (owner != OWNER_NONE) {
|
if (owner != OWNER_NONE) {
|
||||||
CommandCost ret = CheckOwnership(owner, tile);
|
CommandCost ret = CheckOwnership(owner, tile);
|
||||||
|
|
Loading…
Reference in New Issue