MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Classic_RelPositionUpdate

Function Classic_RelPositionUpdate

src/Protocol.c:707–716  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705}
706
707static void Classic_RelPositionUpdate(cc_uint8* data) {
708 struct LocationUpdate update;
709 EntityID id = data[0];
710
711 update.flags = LU_HAS_POS | LU_POS_RELATIVE_SMOOTH | LU_ORI_INTERPOLATE;
712 update.pos.x = (cc_int8)data[1] / 32.0f;
713 update.pos.y = (cc_int8)data[2] / 32.0f;
714 update.pos.z = (cc_int8)data[3] / 32.0f;
715 UpdateLocation(id, &update);
716}
717
718static void Classic_OrientationUpdate(cc_uint8* data) {
719 struct LocationUpdate update;

Callers

nothing calls this directly

Calls 1

UpdateLocationFunction · 0.85

Tested by

no test coverage detected