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

Function osipf_AttachObjectAP

Descent3/osiris_predefs.cpp:2161–2170  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2159}
2160
2161int osipf_AttachObjectAP(int parenthandle, char parent_ap, int childhandle, char child_ap, uint8_t f_use_aligned) {
2162 object *parent = ObjGet(parenthandle);
2163 object *child = ObjGet(childhandle);
2164
2165 if ((parent) && (parent->flags & OF_POLYGON_OBJECT) && (child) && (child->flags & OF_POLYGON_OBJECT)) {
2166 return AttachObject(parent, parent_ap, child, child_ap, (bool)(f_use_aligned != 0));
2167 }
2168
2169 return 0;
2170}
2171
2172int osipf_AttachObjectRad(int parenthandle, char parent_ap, int childhandle, float percent_rad) {
2173 object *parent = ObjGet(parenthandle);

Callers

nothing calls this directly

Calls 2

ObjGetFunction · 0.85
AttachObjectFunction · 0.85

Tested by

no test coverage detected