From 15b784471e3fc0aa210399668294481fa7ceb99d Mon Sep 17 00:00:00 2001 From: alberth Date: Sat, 2 Oct 2010 19:41:25 +0000 Subject: (svn r20882) -Codechange: Make Hash_Set a method. --- src/pathfinder/npf/aystar.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/pathfinder/npf/aystar.cpp') diff --git a/src/pathfinder/npf/aystar.cpp b/src/pathfinder/npf/aystar.cpp index 571754002..f8f939894 100644 --- a/src/pathfinder/npf/aystar.cpp +++ b/src/pathfinder/npf/aystar.cpp @@ -43,7 +43,7 @@ void AyStar::ClosedListAdd(const PathNode *node) /* Add a node to the ClosedList */ PathNode *new_node = MallocT(1); *new_node = *node; - Hash_Set(&this->ClosedListHash, node->node.tile, node->node.direction, new_node); + this->ClosedListHash.Set(node->node.tile, node->node.direction, new_node); } /* Checks if a node is in the OpenList @@ -76,7 +76,7 @@ void AyStar::OpenListAdd(PathNode *parent, const AyStarNode *node, int f, int g) new_node->g = g; new_node->path.parent = parent; new_node->path.node = *node; - Hash_Set(&this->OpenListHash, node->tile, node->direction, new_node); + this->OpenListHash.Set(node->tile, node->direction, new_node); /* Add it to the queue */ this->OpenListQueue.Push(new_node, f); -- cgit v1.2.3-54-g00ecf