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

Function AIPathGetPrevNodePos

Descent3/aipath.cpp:329–338  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327}
328
329bool AIPathGetPrevNodePos(ai_path_info *aip, vector *pos, int *room) {
330 if (AIPathMoveToPrevNode(aip)) {
331 AIPathGetCurrentNodePos(aip, pos, room);
332 AIPathMoveToNextNode(aip);
333
334 return true;
335 }
336
337 return false;
338}
339
340static void AIPathComplete(object *obj) { GoalPathComplete(obj); }
341

Callers 2

AIDoOrientFunction · 0.85

Calls 3

AIPathMoveToPrevNodeFunction · 0.85
AIPathGetCurrentNodePosFunction · 0.85
AIPathMoveToNextNodeFunction · 0.85

Tested by

no test coverage detected