| 8510 | } |
| 8511 | |
| 8512 | void MultiDoAttachRad(uint8_t *data) { |
| 8513 | |
| 8514 | object *parent; |
| 8515 | char parent_ap; |
| 8516 | object *child; |
| 8517 | float rad; |
| 8518 | |
| 8519 | int count = 0; |
| 8520 | SKIP_HEADER(data, &count); |
| 8521 | |
| 8522 | uint16_t parent_num = Server_object_list[MultiGetUshort(data, &count)]; |
| 8523 | parent_ap = MultiGetByte(data, &count); |
| 8524 | parent = &Objects[parent_num]; |
| 8525 | uint16_t child_num = Server_object_list[MultiGetUshort(data, &count)]; |
| 8526 | rad = MultiGetFloat(data, &count); |
| 8527 | child = &Objects[child_num]; |
| 8528 | |
| 8529 | if (parent_num == 65535) { |
| 8530 | mprintf(0, "Client/Server object lists don't match! (Server num %d)\n", parent_num); |
| 8531 | Int3(); |
| 8532 | return; |
| 8533 | } |
| 8534 | if (child_num == 65535) { |
| 8535 | mprintf(0, "Client/Server object lists don't match! (Server num %d)\n", child_num); |
| 8536 | Int3(); |
| 8537 | return; |
| 8538 | } |
| 8539 | |
| 8540 | ASSERT(child >= Objects && parent >= Objects); |
| 8541 | ASSERT(child->type != OBJ_NONE && parent->type != OBJ_NONE); |
| 8542 | |
| 8543 | AttachObject(parent, parent_ap, child, rad); |
| 8544 | } |
| 8545 | |
| 8546 | void MultiSendUnattach(object *child) { |
| 8547 | int count = 0; |
no test coverage detected