From 76659aaf268b7f4ef123c56daedebcd6b385a8f4 Mon Sep 17 00:00:00 2001 From: Mario Date: Mon, 8 Dec 2014 00:05:51 +1100 Subject: [PATCH] Clean up the cl_movement switch a bit --- qcsrc/csqcmodellib/cl_player.qc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/qcsrc/csqcmodellib/cl_player.qc b/qcsrc/csqcmodellib/cl_player.qc index 86c8143ae..af3564476 100644 --- a/qcsrc/csqcmodellib/cl_player.qc +++ b/qcsrc/csqcmodellib/cl_player.qc @@ -21,6 +21,7 @@ */ var float autocvar_cl_movement_errorcompensation = 0; +var float autocvar_cl_movement = 2; // testing purposes // engine stuff #define REFDEFFLAG_TELEPORTED 1 @@ -738,10 +739,10 @@ void CSQC_ClientMovement_PlayerMove_Frame(entity s) 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; - default: break; + case 2: CSQC_ClientMovement_PlayerMove_Frame(self); break; } } #undef vlen2 -- 2.39.2