From: Mario Date: Sun, 7 Dec 2014 13:05:51 +0000 (+1100) Subject: Clean up the cl_movement switch a bit X-Git-Tag: xonotic-v0.8.1~38^2~124 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=76659aaf268b7f4ef123c56daedebcd6b385a8f4;p=xonotic%2Fxonotic-data.pk3dir.git Clean up the cl_movement switch a bit --- 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