mirror of
https://git.code.sf.net/p/quake/newtree
synced 2024-11-22 04:01:17 +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
|
@ -280,7 +280,7 @@ typedef struct
|
|||
float driftmove;
|
||||
double laststop;
|
||||
|
||||
|
||||
int onground; // -1 when in air
|
||||
float crouch; // local amount for smoothing stepups
|
||||
|
||||
qboolean paused; // send over by server
|
||||
|
|
|
@ -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…
Reference in a new issue