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

Function AIDestroyObj

Descent3/AImain.cpp:3592–3601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3590#define MAX_FLUCTUATION_PERCENT 0.08f
3591
3592void AIDestroyObj(object *obj) {
3593 ai_frame *ai_info = obj->ai_info;
3594
3595#ifdef _DEBUG
3596 if (AI_debug_robot_do && OBJNUM(obj) == AI_debug_robot_index) {
3597 mprintf(0, "AI Note: In free path\n");
3598 }
3599#endif
3600 AIPathFreePath(&ai_info->path);
3601}
3602
3603// Copies AI settings from the object info struct to the object struct
3604void ObjSetAIInfo(object *objp) {

Callers 2

LGSObjectsFunction · 0.85
ObjDeleteFunction · 0.85

Calls 1

AIPathFreePathFunction · 0.85

Tested by

no test coverage detected