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

Function osipf_AttachObjectRad

Descent3/osiris_predefs.cpp:2172–2181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2170}
2171
2172int osipf_AttachObjectRad(int parenthandle, char parent_ap, int childhandle, float percent_rad) {
2173 object *parent = ObjGet(parenthandle);
2174 object *child = ObjGet(childhandle);
2175
2176 if ((parent) && (parent->flags & OF_POLYGON_OBJECT) && (child) && (child->flags & OF_POLYGON_OBJECT)) {
2177 return AttachObject(parent, parent_ap, child, percent_rad);
2178 }
2179
2180 return 0;
2181}
2182
2183void osipf_UnattachFromParent(int objhandle) {
2184 object *child = ObjGet(objhandle);

Callers

nothing calls this directly

Calls 2

ObjGetFunction · 0.85
AttachObjectFunction · 0.85

Tested by

no test coverage detected