From fd4921ea32c4485fb0dde2b21bc51e5f8d6ae1ae Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sun, 2 Jan 2022 16:52:03 +1100 Subject: [PATCH] Initial position should be previous position not next position whoops --- src/Entity.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Entity.c b/src/Entity.c index 40f0df6e3..53bea4e9a 100644 --- a/src/Entity.c +++ b/src/Entity.c @@ -859,7 +859,7 @@ static void LocalPlayer_Tick(struct Entity* e, double delta) { wasOnGround = e->OnGround; LocalInterpComp_AdvanceState(&p->Interp); - p->Base.Position = p->Interp.Next.Pos; + p->Base.Position = p->Interp.Prev.Pos; LocalPlayer_HandleInput(&xMoving, &zMoving); hacks->Floating = hacks->Noclip || hacks->Flying; @@ -1137,7 +1137,7 @@ static void NetPlayer_SetLocation(struct Entity* e, struct LocationUpdate* updat static void NetPlayer_Tick(struct Entity* e, double delta) { struct NetPlayer* p = (struct NetPlayer*)e; NetInterpComp_AdvanceState(&p->Interp); - p->Base.Position = p->Interp.Next.Pos; + p->Base.Position = p->Interp.Prev.Pos; Entity_CheckSkin(e); AnimatedComp_Update(e, p->Interp.Prev.Pos, p->Interp.Next.Pos, delta);