| 1562 | } |
| 1563 | |
| 1564 | static void CPE_ExtEntityTeleport(cc_uint8* data) { |
| 1565 | EntityID id = *data++; |
| 1566 | cc_uint8 packetFlags = *data++; |
| 1567 | cc_uint8 flags = 0; |
| 1568 | |
| 1569 | /* bit 0 includes position */ |
| 1570 | /* bits 1-2 position mode(absolute_instant / absolute_smooth / relative_smooth / relative_seamless) */ |
| 1571 | /* bit 3 unused */ |
| 1572 | /* bit 4 includes orientation */ |
| 1573 | /* bit 5 interpolate ori */ |
| 1574 | /* bit 6-7 unused */ |
| 1575 | |
| 1576 | if (packetFlags & 1) flags |= LU_HAS_POS; |
| 1577 | flags |= (packetFlags & 6) << 4; /* bit-and with 00000110 to isolate only pos mode, then left shift by 4 to match client mode offset */ |
| 1578 | if (packetFlags & 16) flags |= LU_HAS_PITCH | LU_HAS_YAW; |
| 1579 | if (packetFlags & 32) flags |= LU_ORI_INTERPOLATE; |
| 1580 | |
| 1581 | Classic_ReadAbsoluteLocation(data, id, flags); |
| 1582 | } |
| 1583 | |
| 1584 | static void CPE_LightingMode(cc_uint8* data) { |
| 1585 | cc_uint8 mode = *data++; |
nothing calls this directly
no test coverage detected