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

Function NetInterpComp_AddAngles

src/EntityComponents.c:357–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

355}
356
357static void NetInterpComp_AddAngles(struct NetInterpComp* interp, struct NetInterpAngles angles) {
358 if (interp->AnglesCount == Array_Elems(interp->Angles)) {
359 NetInterpComp_RemoveOldestAngles(interp);
360 }
361 interp->Angles[interp->AnglesCount++] = angles;
362}
363
364void NetInterpComp_SetLocation(struct NetInterpComp* interp, struct LocationUpdate* update, struct Entity* e) {
365 struct NetInterpAngles last = interp->CurAngles;

Callers 1

Calls 1

Tested by

no test coverage detected