]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - portals.c
you can now (try to) play in maps you don't have, and models you don't have are shown...
[xonotic/darkplaces.git] / portals.c
index 0343e9de2955f80094b70a8faaa82cb390a0e3ef..554177ad849ea74da3c9c77049fe259f71831ff8 100644 (file)
--- a/portals.c
+++ b/portals.c
@@ -187,6 +187,10 @@ int Portal_CheckPolygon(model_t *model, vec3_t eye, float *polypoints, int numpo
        mleaf_t *eyeleaf;
        vec3_t center, v1, v2;
 
+       // if there is no model, it can not block visibility
+       if (model == NULL)
+               return true;
+
        portal_markid++;
 
        Mod_CheckLoaded(model);