]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
reduced view warping when underwater
[xonotic/darkplaces.git] / 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);
                }
        }
 }