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

Function DemoReadAttachObjRad

Descent3/demofile.cpp:1472–1485  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1470}
1471
1472void DemoReadAttachObjRad(void) {
1473 int16_t old_objnum;
1474 int16_t parent_num;
1475 int16_t child_num;
1476 char parent_ap;
1477 float rad;
1478 old_objnum = cf_ReadShort(Demo_cfp);
1479 parent_num = Demo_obj_map[old_objnum];
1480 parent_ap = cf_ReadByte(Demo_cfp);
1481 old_objnum = cf_ReadShort(Demo_cfp);
1482 child_num = Demo_obj_map[old_objnum];
1483 rad = cf_ReadFloat(Demo_cfp);
1484 AttachObject(&Objects[parent_num], parent_ap, &Objects[child_num], rad);
1485}
1486
1487void DemoWriteAttachObj(object *parent, char parent_ap, object *child, char child_ap, bool f_aligned) {
1488 cf_WriteByte(Demo_cfp, DT_ATTACH);

Callers 1

DemoFrameFunction · 0.85

Calls 4

cf_ReadShortFunction · 0.85
cf_ReadByteFunction · 0.85
cf_ReadFloatFunction · 0.85
AttachObjectFunction · 0.85

Tested by

no test coverage detected