]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
more q3bsp work (and no it still doesn't work right)
[xonotic/darkplaces.git] / cl_screen.c
index 19e72e96a7b57fdd55c3cacc1ec657ef9fd6ab85..f90470f1afd102caebcc6067b3330f5474a0b7ee 100644 (file)
@@ -698,8 +698,8 @@ static void SCR_CalcRefdef (void)
        if (cl.worldmodel)
        {
                Mod_CheckLoaded(cl.worldmodel);
        if (cl.worldmodel)
        {
                Mod_CheckLoaded(cl.worldmodel);
-               contents = CL_PointContents(r_refdef.vieworg);
-               if (contents != CONTENTS_EMPTY && contents != CONTENTS_SOLID)
+               contents = CL_PointSuperContents(r_refdef.vieworg);
+               if (contents & SUPERCONTENTS_LIQUIDSMASK)
                {
                        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);
                {
                        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);