| 316 | } |
| 317 | |
| 318 | static 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 | |
| 325 | static void NetInterpComp_SetPosition(struct NetInterpComp* interp, struct LocationUpdate* update, struct Entity* e, int mode) { |
| 326 | Vec3 lastPos = interp->CurPos; |
no test coverage detected