diff options
author | rubidium <rubidium@openttd.org> | 2009-12-19 09:23:19 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-12-19 09:23:19 +0000 |
commit | b3e3f0b0ee897d74d94528eeacc92a33c8bd8831 (patch) | |
tree | 981d4e22ab39cb0a320b4a1822fe4bf2ca5a6ef0 /src/pathfinder | |
parent | 21324b69d962fd52f866ff6005aa0bae91a4686b (diff) | |
download | openttd-b3e3f0b0ee897d74d94528eeacc92a33c8bd8831.tar.xz |
(svn r18533) -Fix: don't refer, in the comments, to a long renamed function
Diffstat (limited to 'src/pathfinder')
-rw-r--r-- | src/pathfinder/npf/npf.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp index 1e732a125..0432ba6ff 100644 --- a/src/pathfinder/npf/npf.cpp +++ b/src/pathfinder/npf/npf.cpp @@ -59,7 +59,7 @@ enum { NPF_NODE_FLAGS, }; -/* Flags for AyStarNode.userdata[NPF_NODE_FLAGS]. Use NPFGetBit() and NPFGetBit() to use them. */ +/* Flags for AyStarNode.userdata[NPF_NODE_FLAGS]. Use NPFSetFlag() and NPFGetFlag() to use them. */ enum NPFNodeFlag { NPF_FLAG_SEEN_SIGNAL, ///< Used to mark that a signal was seen on the way, for rail only NPF_FLAG_2ND_SIGNAL, ///< Used to mark that two signals were seen, rail only @@ -1033,7 +1033,7 @@ static NPFFoundTargetData NPFRouteInternal(AyStarNode *start1, bool ignore_start /* Will search as below, but with two start nodes, the second being the * reverse. Look at the NPF_FLAG_REVERSE flag in the result node to see which - * direction was taken (NPFGetBit(result.node, NPF_FLAG_REVERSE)) */ + * direction was taken (NPFGetFlag(result.node, NPF_FLAG_REVERSE)) */ static NPFFoundTargetData NPFRouteToStationOrTileTwoWay(TileIndex tile1, Trackdir trackdir1, bool ignore_start_tile1, TileIndex tile2, Trackdir trackdir2, bool ignore_start_tile2, NPFFindStationOrTileData *target, TransportType type, uint sub_type, Owner owner, RailTypes railtypes) { AyStarNode start1; @@ -1061,7 +1061,7 @@ static NPFFoundTargetData NPFRouteToStationOrTile(TileIndex tile, Trackdir track /* Search using breadth first. Good for little track choice and inaccurate * heuristic, such as railway/road with two start nodes, the second being the reverse. Call - * NPFGetBit(result.node, NPF_FLAG_REVERSE) to see from which node the path + * NPFGetFlag(result.node, NPF_FLAG_REVERSE) to see from which node the path * orginated. All pathfs from the second node will have the given * reverse_penalty applied (NPF_TILE_LENGTH is the equivalent of one full * tile). |