]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
changed brush model API - now uses function pointers for some of the brush model...
[xonotic/darkplaces.git] / cl_screen.c
index 8d3babe257b10435d7a127386fad317434ea6812..c174176365bcbbdebdf3624c4f3388088c10a6a5 100644 (file)
@@ -693,7 +693,7 @@ static void SCR_CalcRefdef (void)
        if (cl.worldmodel)
        {
                Mod_CheckLoaded(cl.worldmodel);
-               contents = Mod_PointContents(r_refdef.vieworg, cl.worldmodel);
+               contents = cl.worldmodel ? cl.worldmodel->PointContents(cl.worldmodel, r_refdef.vieworg) : CONTENTS_EMPTY;
                if (contents != CONTENTS_EMPTY && contents != CONTENTS_SOLID)
                {
                        r_refdef.fov_x *= (sin(cl.time * 4.7) * 0.015 + 0.985);