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

Function path_new_step

Source/path.cpp:359–370  ·  view source on GitHub ↗

* @brief zero one of the preallocated nodes and return a pointer to it, or NULL if none are available */

Source from the content-addressed store, hash-verified

357 * @brief zero one of the preallocated nodes and return a pointer to it, or NULL if none are available
358 */
359PATHNODE *path_new_step()
360{
361 PATHNODE *new_node;
362
363 if (gdwCurNodes == MAXPATHNODES)
364 return NULL;
365
366 new_node = &path_nodes[gdwCurNodes];
367 gdwCurNodes++;
368 memset(new_node, 0, sizeof(PATHNODE));
369 return new_node;
370}
371
372DEVILUTION_END_NAMESPACE

Callers 2

FindPathFunction · 0.85
path_parent_pathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected