]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
fixed impulse lossage problem (ApplyClientMove wasn't being called during ReadClientMove)
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Jun 2005 08:34:43 +0000 (08:34 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 5 Jun 2005 08:34:43 +0000 (08:34 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5395 d7cf8633-e32d-0410-b094-e92efae38249

sv_phys.c
sv_user.c

index edb1db2c969f11b5ecbf670d6d0067ccd64e4acf..e4ca6e6619bdc8b3afa89cad61ab46e02974db16 100644 (file)
--- 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)
index 6566bf3e2bd5c16e05392d244ff437165653c908..37fe57417d88e4d27b4421e0bfb80f17aa0c1338 100644 (file)
--- 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)
                {