mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2024-11-10 07:21:58 +00:00
fix rendering bug when cl_bobcycle was set to zero (sf.net bug/41)
fix taken from Kevin Shanahan's Tyr-Quake
This commit is contained in:
parent
7f0757588d
commit
f88bdb7d0b
1 changed files with 3 additions and 0 deletions
|
@ -116,6 +116,9 @@ float V_CalcBob (void)
|
|||
float bob;
|
||||
float cycle;
|
||||
|
||||
if (!cl_bobcycle.value) /* Avoid divide-by-zero, don't bob */
|
||||
return 0.0f;
|
||||
|
||||
cycle = cl.time - (int)(cl.time/cl_bobcycle.value)*cl_bobcycle.value;
|
||||
cycle /= cl_bobcycle.value;
|
||||
if (cycle < cl_bobup.value)
|
||||
|
|
Loading…
Reference in a new issue