diff options
author | alberth <alberth@openttd.org> | 2010-10-02 09:58:32 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 09:58:32 +0000 |
commit | 49ba3539b5971535476110cba85dbf13f9b02bd6 (patch) | |
tree | 930187e3386008ff12b70efd588b399433004140 /src/pathfinder/npf/npf.cpp | |
parent | 92f0bdec2cb46b8defa6a82a9ff608ce7a2d1392 (diff) | |
download | openttd-49ba3539b5971535476110cba85dbf13f9b02bd6.tar.xz |
(svn r20867) -Codechange: Make AyStarMain_AddStartNode() a method.
Diffstat (limited to 'src/pathfinder/npf/npf.cpp')
-rw-r--r-- | src/pathfinder/npf/npf.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/npf/npf.cpp b/src/pathfinder/npf/npf.cpp index a8b471c73..b027ba933 100644 --- a/src/pathfinder/npf/npf.cpp +++ b/src/pathfinder/npf/npf.cpp @@ -980,13 +980,13 @@ static NPFFoundTargetData NPFRouteInternal(AyStarNode *start1, bool ignore_start start1->user_data[NPF_TRACKDIR_CHOICE] = INVALID_TRACKDIR; start1->user_data[NPF_NODE_FLAGS] = 0; NPFSetFlag(start1, NPF_FLAG_IGNORE_START_TILE, ignore_start_tile1); - _npf_aystar.addstart(&_npf_aystar, start1, 0); + _npf_aystar.AddStartNode(start1, 0); if (start2) { start2->user_data[NPF_TRACKDIR_CHOICE] = INVALID_TRACKDIR; start2->user_data[NPF_NODE_FLAGS] = 0; NPFSetFlag(start2, NPF_FLAG_IGNORE_START_TILE, ignore_start_tile2); NPFSetFlag(start2, NPF_FLAG_REVERSE, true); - _npf_aystar.addstart(&_npf_aystar, start2, reverse_penalty); + _npf_aystar.AddStartNode(start2, reverse_penalty); } /* Initialize result */ |