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

Function NetInterpComp_AddPosition

src/EntityComponents.c:318–323  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

316}
317
318static void NetInterpComp_AddPosition(struct NetInterpComp* interp, Vec3 pos) {
319 if (interp->PositionsCount == Array_Elems(interp->Positions)) {
320 NetInterpComp_RemoveOldestPosition(interp);
321 }
322 interp->Positions[interp->PositionsCount++] = pos;
323}
324
325static void NetInterpComp_SetPosition(struct NetInterpComp* interp, struct LocationUpdate* update, struct Entity* e, int mode) {
326 Vec3 lastPos = interp->CurPos;

Callers 1

Calls 1

Tested by

no test coverage detected