diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:41:25 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:41:25 +0000 |
commit | 15b784471e3fc0aa210399668294481fa7ceb99d (patch) | |
tree | 7a36abfbb28ebd3ba42e7f9c6226ba53d6dc5f81 /src/pathfinder/npf/aystar.cpp | |
parent | 4ed94825b2b149cc7da7d1827c4bc26988e72f03 (diff) | |
download | openttd-15b784471e3fc0aa210399668294481fa7ceb99d.tar.xz |
(svn r20882) -Codechange: Make Hash_Set a method.
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 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<PathNode>(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); |