| 1470 | } |
| 1471 | |
| 1472 | void 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 | |
| 1487 | void DemoWriteAttachObj(object *parent, char parent_ap, object *child, char child_ap, bool f_aligned) { |
| 1488 | cf_WriteByte(Demo_cfp, DT_ATTACH); |
no test coverage detected