X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_screen.c;h=f90470f1afd102caebcc6067b3330f5474a0b7ee;hp=19e72e96a7b57fdd55c3cacc1ec657ef9fd6ab85;hb=e24d834dcbcc61f28fdf0e2c1ba75693d9e23ed1;hpb=5f9da8b90dfd4f0c86120ed01ca3e16c2dbb58e1;ds=sidebyside diff --git a/cl_screen.c b/cl_screen.c index 19e72e96..f90470f1 100644 --- a/cl_screen.c +++ b/cl_screen.c @@ -698,8 +698,8 @@ static void SCR_CalcRefdef (void) 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);