MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / DebugGraph_FindNode

Function DebugGraph_FindNode

Descent3/debuggraph.cpp:159–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159tGraphNode *DebugGraph_FindNode(int index) {
160 if (index >= graph_num_nodes)
161 return NULL;
162 tDebugGraphNode *curr = DebugGraphNode_root;
163 int ci = 0;
164 while (curr) {
165 if (ci == index) {
166 return curr->node;
167 }
168 curr = curr->next;
169 ci++;
170 }
171
172 return NULL;
173}
174
175void DebugGraph_Free(void) {
176 tDebugGraphNode *curr, *next;

Callers 3

DebugGraph_UpdateFunction · 0.85
DebugGraph_RenderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected