From 78849b4410c239e0c5451ff7103c0914668825f1 Mon Sep 17 00:00:00 2001 From: fgsfds Date: Wed, 4 Mar 2020 03:38:13 +0300 Subject: [PATCH] put network interp back in --- src/game/g_netmsg.pas | 3 +-- src/game/g_player.pas | 7 +++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/game/g_netmsg.pas b/src/game/g_netmsg.pas index 92084b1..5e95a6a 100644 --- a/src/game/g_netmsg.pas +++ b/src/game/g_netmsg.pas @@ -2282,8 +2282,7 @@ begin GameVelY := M.ReadLongInt(); GameAccelX := M.ReadLongInt(); GameAccelY := M.ReadLongInt(); - GameX := TmpX; - GameY := TmpY; + SetLerp(TmpX, TmpY); if NetForcePlayerUpdate then Update(); end; end; diff --git a/src/game/g_player.pas b/src/game/g_player.pas index 068c2b4..3e30f63 100644 --- a/src/game/g_player.pas +++ b/src/game/g_player.pas @@ -5069,8 +5069,11 @@ begin NetServer := g_Game_IsNet and g_Game_IsServer; AnyServer := g_Game_IsServer; - if FGhost then - DoLerp(4); + if g_Game_IsClient and (NetInterpLevel > 0) then + DoLerp(NetInterpLevel + 1) + else + if FGhost then + DoLerp(4); if NetServer then if FClientID >= 0 then -- 2.29.2