reduced view warping when underwater
authorlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Feb 2002 23:16:06 +0000 (23:16 +0000)
committerlordhavoc <lordhavoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 15 Feb 2002 23:16:06 +0000 (23:16 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@1525 d7cf8633-e32d-0410-b094-e92efae38249

cl_screen.c

index 814e9b3f66027991264694640629cd9f83ae61f7..0586a6768456f51b0fba988416410a39ed89adb9 100644 (file)
@@ -745,8 +745,8 @@ static void SCR_CalcRefdef (void)
                contents = Mod_PointInLeaf(r_refdef.vieworg, cl.worldmodel)->contents;
                if (contents != CONTENTS_EMPTY && contents != CONTENTS_SOLID)
                {
-                       r_refdef.fov_x *= (sin(cl.time * 4.7) * 0.03 + 0.97);
-                       r_refdef.fov_y *= (sin(cl.time * 3.0) * 0.03 + 0.97);
+                       r_refdef.fov_x *= (sin(cl.time * 4.7) * 0.015 + 0.985);
+                       r_refdef.fov_y *= (sin(cl.time * 3.0) * 0.015 + 0.985);
                }
        }
 }