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

Function NetInterpComp_RemoveOldestPosition

src/EntityComponents.c:309–316  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

307(dst).rotZ = (src)->RotZ;
308
309static void NetInterpComp_RemoveOldestPosition(struct NetInterpComp* interp) {
310 int i;
311 interp->PositionsCount--;
312
313 for (i = 0; i < interp->PositionsCount; i++) {
314 interp->Positions[i] = interp->Positions[i + 1];
315 }
316}
317
318static void NetInterpComp_AddPosition(struct NetInterpComp* interp, Vec3 pos) {
319 if (interp->PositionsCount == Array_Elems(interp->Positions)) {

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected