MCPcopy Create free account
hub / github.com/diasurgical/devilution / path_get_node1

Function path_get_node1

Source/path.cpp:265–271  ·  view source on GitHub ↗

* @brief return a node for (dx,dy) on the frontier, or NULL if not found */

Source from the content-addressed store, hash-verified

263 * @brief return a node for (dx,dy) on the frontier, or NULL if not found
264 */
265PATHNODE *path_get_node1(int dx, int dy)
266{
267 PATHNODE *result = path_2_nodes->NextNode;
268 while (result != NULL && (result->x != dx || result->y != dy))
269 result = result->NextNode;
270 return result;
271}
272
273/**
274 * @brief return a node for (dx,dy) if it was visited, or NULL if not found

Callers 1

path_parent_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected