cl_bobcycle fix
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1544 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
210cb2e959
commit
fc7fb0c3ac
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ float V_CalcBob (int pnum)
|
|||
if (!cl.onground[pnum] || cl.paused)
|
||||
return bob[pnum]; // just use old value
|
||||
|
||||
if (cl_bobcycle.value <= 0)
|
||||
return 0;
|
||||
|
||||
bobtime[pnum] += host_frametime;
|
||||
cycle = bobtime[pnum] - (int)(bobtime[pnum]/cl_bobcycle.value)*cl_bobcycle.value;
|
||||
cycle /= cl_bobcycle.value;
|
||||
|
|
Loading…
Reference in a new issue