]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Clean up the cl_movement switch a bit
authorMario <zacjardine@y7mail.com>
Sun, 7 Dec 2014 13:05:51 +0000 (00:05 +1100)
committerMario <zacjardine@y7mail.com>
Sun, 7 Dec 2014 13:06:07 +0000 (00:06 +1100)
qcsrc/csqcmodellib/cl_player.qc

index 86c8143aef914d0c987a6095c123382ace8535f5..af35644763bdd73be5d3c0bec67e894c98dd7948 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 var float autocvar_cl_movement_errorcompensation = 0;
  */
 
 var float autocvar_cl_movement_errorcompensation = 0;
+var float autocvar_cl_movement = 2; // testing purposes
 
 // engine stuff
 #define REFDEFFLAG_TELEPORTED 1
 
 // engine stuff
 #define REFDEFFLAG_TELEPORTED 1
@@ -738,10 +739,10 @@ void CSQC_ClientMovement_PlayerMove_Frame(entity s)
 
 void CSQCPlayer_Physics(void)
 {
 
 void CSQCPlayer_Physics(void)
 {
-       switch(cvar("cl_movement")) {
-               case 2: CSQC_ClientMovement_PlayerMove_Frame(self); break;
+       switch(autocvar_cl_movement)
+       {
                case 1: runstandardplayerphysics(self); break;
                case 1: runstandardplayerphysics(self); break;
-               default: break;
+               case 2: CSQC_ClientMovement_PlayerMove_Frame(self); break;
        }
 }
 #undef vlen2
        }
 }
 #undef vlen2