]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - portals.c
fix the inverted bumps on some surfaces (no longer uses CrossProduct to get the svector)
[xonotic/darkplaces.git] / portals.c
index da91b8f40b774e474a629cb65fd1ffb87079ccce..bf6f27448bda6d683bb6ef017a987d9ef0abdcb3 100644 (file)
--- a/portals.c
+++ b/portals.c
@@ -402,7 +402,7 @@ void Portal_RecursiveFlow (portalrecursioninfo_t *info, mleaf_t *leaf, int first
        }
 
        if (info->leafmark)
-               info->leafmark[leaf - info->model->brushq1.leafs] = true;
+               info->leafmark[leaf - info->model->brushq1.data_leafs] = true;
 
        // mark surfaces in leaf that can be seen through portal
        if (leaf->nummarksurfaces && info->surfacemark)