]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
let the slowmo cvar override the server/demo's idea of slowmo when it is != 1; makes...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 May 2007 17:17:38 +0000 (17:17 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 7 May 2007 17:17:38 +0000 (17:17 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7247 d7cf8633-e32d-0410-b094-e92efae38249

cl_input.c

index 94a64a714f605639db78335b3451e5bf2a7f4a42..87ceef1a1a544d162830496a1fe3ac3015bc53c5 100644 (file)
@@ -1053,7 +1053,7 @@ void CL_UpdateMoveVars(void)
        else if (cl.stats[STAT_MOVEVARS_TICRATE])
        {
                cl.movevars_ticrate = cl.statsf[STAT_MOVEVARS_TICRATE];
-               cl.movevars_slowmo = cl.statsf[STAT_MOVEVARS_TIMESCALE];
+               cl.movevars_slowmo = (slowmo.value == 1) ? cl.statsf[STAT_MOVEVARS_TIMESCALE] : slowmo.value;
                cl.movevars_gravity = cl.statsf[STAT_MOVEVARS_GRAVITY];
                cl.movevars_stopspeed = cl.statsf[STAT_MOVEVARS_STOPSPEED] ;
                cl.movevars_maxspeed = cl.statsf[STAT_MOVEVARS_MAXSPEED];