worked on nav-mesh
added dijkstra support for nav mesh some minor changes to distributions minor fixes
This commit is contained in:
@@ -31,7 +31,12 @@ public:
|
||||
|
||||
/** get the dijkstra-pendant for the given user-node. null if none matches */
|
||||
inline const DijkstraNode<T>* getNode(const T& userNode) const {
|
||||
auto it = nodes.find(&userNode);
|
||||
return getNode(&userNode);
|
||||
}
|
||||
|
||||
/** get the dijkstra-pendant for the given user-node. null if none matches */
|
||||
inline const DijkstraNode<T>* getNode(const T* userNode) const {
|
||||
auto it = nodes.find(userNode);
|
||||
return (unlikely(it == nodes.end())) ? (nullptr) : (it->second);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user