From: havoc Date: Sun, 5 Jun 2005 08:34:43 +0000 (+0000) Subject: fixed impulse lossage problem (ApplyClientMove wasn't being called during ReadClientMove) X-Git-Tag: xonotic-v0.1.0preview~4787 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=c1e22866acc7c2a8d82e6da37684aec8c1bcbd9d;p=xonotic%2Fdarkplaces.git fixed impulse lossage problem (ApplyClientMove wasn't being called during ReadClientMove) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5395 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/sv_phys.c b/sv_phys.c index edb1db2c..e4ca6e66 100644 --- a/sv_phys.c +++ b/sv_phys.c @@ -1345,8 +1345,6 @@ void SV_Physics_Entity (prvm_edict_t *ent, qboolean runmove) int i = ent - prog->edicts; if (i >= 1 && i <= svs.maxclients) { - // apply the latest accepted move to the entity fields - SV_ApplyClientMove(); // make sure the velocity is sane (not a NaN) SV_CheckVelocity(ent); // LordHavoc: QuakeC replacement for SV_ClientThink (player movement) diff --git a/sv_user.c b/sv_user.c index 6566bf3e..37fe5741 100644 --- a/sv_user.c +++ b/sv_user.c @@ -603,6 +603,7 @@ SV_ReadClientMove =================== */ extern void SV_Physics_Entity (prvm_edict_t *ent, qboolean runmove); +void SV_ApplyClientMove (void); void SV_ReadClientMove (void) { int i; @@ -681,6 +682,8 @@ void SV_ReadClientMove (void) memset(move, 0, sizeof(*move)); else { + // apply the latest accepted move to the entity fields + SV_ApplyClientMove(); host_client->movesequence = move->sequence; if (host_client->movesequence) {