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

Function AIPathFreeDPathSlot

Descent3/aipath.cpp:538–550  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

536}
537
538static bool AIPathFreeDPathSlot(int slot) {
539 ASSERT(AIDynamicPath[slot].use_count >= 0);
540 ASSERT(slot >= 0 && slot < MAX_DYNAMIC_PATHS && AIDynamicPath[slot].use_count != 0);
541
542 AIDynamicPath[slot].use_count--;
543
544 if (!AIDynamicPath[slot].use_count) {
545 AIDynamicPath[slot].num_nodes = 0;
546 AIDynamicPath[slot].owner_handle = OBJECT_HANDLE_NONE;
547 }
548
549 return true;
550}
551
552static bool AIPathGetDPathSlot(int *slot, int handle) {
553 int i;

Callers 2

AIPathGetDPathSlotFunction · 0.85
AIPathFreePathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected