diff options
author | alberth <alberth@openttd.org> | 2010-08-29 13:35:51 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-08-29 13:35:51 +0000 |
commit | 92801ac718a2bb735aac91c869239967a9cee7fc (patch) | |
tree | b23e35967857504ebce54ad93609f7cf4805630f /src/pathfinder/npf/aystar.cpp | |
parent | 68e2a07479f1aed8ad0a8fe2f72e7affcf0f9427 (diff) | |
download | openttd-92801ac718a2bb735aac91c869239967a9cee7fc.tar.xz |
(svn r20681) -Codechange: Make BinaryHeap_Push() a method, introduce temporary THISBIN_HEAP_ARR macro.
Diffstat (limited to 'src/pathfinder/npf/aystar.cpp')
-rw-r--r-- | src/pathfinder/npf/aystar.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp index 581b76921..49ca4e1b6 100644 --- a/src/pathfinder/npf/aystar.cpp +++ b/src/pathfinder/npf/aystar.cpp @@ -82,7 +82,7 @@ static void AyStarMain_OpenList_Add(AyStar *aystar, PathNode *parent, const AySt Hash_Set(&aystar->OpenListHash, node->tile, node->direction, new_node); /* Add it to the queue */ - aystar->OpenListQueue.push(&aystar->OpenListQueue, new_node, f); + aystar->OpenListQueue.Push(new_node, f); } /* @@ -136,7 +136,7 @@ static int AyStarMain_CheckTile(AyStar *aystar, AyStarNode *current, OpenListNod check->path.node.user_data[i] = current->user_data[i]; } /* Readd him in the OpenListQueue */ - aystar->OpenListQueue.push(&aystar->OpenListQueue, check, new_f); + aystar->OpenListQueue.Push(check, new_f); } else { /* A new node, add him to the OpenList */ AyStarMain_OpenList_Add(aystar, closedlist_parent, current, new_f, new_g); |