From: divverent Date: Mon, 7 May 2007 17:17:38 +0000 (+0000) Subject: let the slowmo cvar override the server/demo's idea of slowmo when it is != 1; makes... X-Git-Tag: xonotic-v0.1.0preview~3200 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=59debfcc7838a0e256033b3fc49d407741b3df58;p=xonotic%2Fdarkplaces.git let the slowmo cvar override the server/demo's idea of slowmo when it is != 1; makes slowmo work again for demo playback git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7247 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_input.c b/cl_input.c index 94a64a71..87ceef1a 100644 --- a/cl_input.c +++ b/cl_input.c @@ -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];