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

Function ComputeUltimateAttachParent

Descent3/attach.cpp:439–448  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

437}
438
439static inline void ComputeUltimateAttachParent(object *child) {
440 object *cur_obj = child;
441
442 do {
443 child->attach_ultimate_handle = cur_obj->attach_parent_handle;
444 cur_obj = ObjGet(child->attach_ultimate_handle);
445 ASSERT(cur_obj);
446
447 } while (cur_obj->flags & OF_ATTACHED);
448}
449
450static void ProprogateUltimateAttachParent(object *parent, int ultimate_handle) {
451 int i;

Callers 1

AttachObjectFunction · 0.85

Calls 1

ObjGetFunction · 0.85

Tested by

no test coverage detected