Browse Source

engine: fix predicting oldbuttons

pull/2/head
Alibek Omarov 4 years ago
parent
commit
ed0ca2b2d2
  1. 2
      engine/client/cl_pmove.c
  2. 2
      engine/server/sv_pmove.c

2
engine/client/cl_pmove.c

@ -1048,7 +1048,7 @@ void CL_FinishPMove( playermove_t *pmove, local_state_t *to ) @@ -1048,7 +1048,7 @@ void CL_FinishPMove( playermove_t *pmove, local_state_t *to )
VectorCopy( pmove->angles, ps->angles );
VectorCopy( pmove->basevelocity, ps->basevelocity );
VectorCopy( pmove->punchangle, cd->punchangle );
ps->oldbuttons = pmove->oldbuttons;
ps->oldbuttons = pmove->cmd.buttons;
ps->friction = pmove->friction;
ps->movetype = pmove->movetype;
ps->onground = pmove->onground;

2
engine/server/sv_pmove.c

@ -753,7 +753,7 @@ static void SV_FinishPMove( playermove_t *pmove, sv_client_t *cl ) @@ -753,7 +753,7 @@ static void SV_FinishPMove( playermove_t *pmove, sv_client_t *cl )
VectorCopy( pmove->movedir, clent->v.movedir );
clent->v.flTimeStepSound = pmove->flTimeStepSound;
clent->v.flFallVelocity = pmove->flFallVelocity;
clent->v.oldbuttons = pmove->oldbuttons;
clent->v.oldbuttons = pmove->cmd.buttons;
clent->v.waterlevel = pmove->waterlevel;
clent->v.watertype = pmove->watertype;
clent->v.maxspeed = pmove->clientmaxspeed;

Loading…
Cancel
Save