mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-05-30 08:40:39 +00:00
This fixes an ugly bug caused by a bug in the ugly netquake step up smoothing code :)
This commit is contained in:
parent
ea2a5c6f3e
commit
32910a1b5f
3 changed files with 5 additions and 2 deletions
|
@ -150,6 +150,8 @@ CL_PredictMove (void)
|
|||
if (cl.paused)
|
||||
return;
|
||||
|
||||
cl.onground = 0; // assume on ground unless prediction says different
|
||||
|
||||
cl.time = realtime - cls.latency - cl_pushlatency->value * 0.001;
|
||||
if (cl.time > realtime)
|
||||
cl.time = realtime;
|
||||
|
@ -193,6 +195,7 @@ CL_PredictMove (void)
|
|||
CL_PredictUsercmd (&from->playerstate[cl.playernum]
|
||||
, &to->playerstate[cl.playernum], &to->cmd,
|
||||
cl.spectator);
|
||||
cl.onground = onground;
|
||||
if (to->senttime >= cl.time)
|
||||
break;
|
||||
from = to;
|
||||
|
|
|
@ -734,7 +734,7 @@ V_CalcRefdef (void)
|
|||
r_refdef.viewangles[PITCH] += cl.punchangle;
|
||||
|
||||
// smooth out stair step ups
|
||||
if ((view_message->onground != -1) && (cl.simorg[2] - oldz > 0)) {
|
||||
if ((cl.onground != -1) && (cl.simorg[2] - oldz > 0)) {
|
||||
float steptime;
|
||||
|
||||
steptime = host_frametime;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue