diff options
author | alberth <alberth@openttd.org> | 2010-10-02 19:39:34 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-10-02 19:39:34 +0000 |
commit | 4ed94825b2b149cc7da7d1827c4bc26988e72f03 (patch) | |
tree | 325efbef81042c3a6d2092f06fedcd093c7b6b91 /src/pathfinder/npf/aystar.cpp | |
parent | 6ea5643e400f8a18059ba74c2f2fd319389a6440 (diff) | |
download | openttd-4ed94825b2b149cc7da7d1827c4bc26988e72f03.tar.xz |
(svn r20881) -Codechange: Make Hash_Get 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 01057ea73..571754002 100644 --- a/src/pathfinder/npf/aystar.cpp +++ b/src/pathfinder/npf/aystar.cpp @@ -33,7 +33,7 @@ * If so, it returns the PathNode, else NULL */ PathNode *AyStar::ClosedListIsInList(const AyStarNode *node) { - return (PathNode*)Hash_Get(&this->ClosedListHash, node->tile, node->direction); + return (PathNode*)this->ClosedListHash.Get(node->tile, node->direction); } /* This adds a node to the ClosedList @@ -50,7 +50,7 @@ void AyStar::ClosedListAdd(const PathNode *node) * If so, it returns the OpenListNode, else NULL */ OpenListNode *AyStar::OpenListIsInList(const AyStarNode *node) { - return (OpenListNode*)Hash_Get(&this->OpenListHash, node->tile, node->direction); + return (OpenListNode*)this->OpenListHash.Get(node->tile, node->direction); } /* Gets the best node from OpenList |