]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - portals.c
view: Restore all of the bobmodel cvars to their original defaults. They're ignored...
[xonotic/darkplaces.git] / portals.c
index 0900a34f8f6c9c6fb41dc12b53c77baaa03a8398..7cd20a5d768bb3a8ab759c436789e3c176095d33 100644 (file)
--- a/portals.c
+++ b/portals.c
@@ -325,8 +325,8 @@ static void Portal_RecursiveFlow (portalrecursioninfo_t *info, mleaf_t *leaf, in
                        msurface_t *surface = info->model->data_surfaces + surfaceindex;
                        if (BoxesOverlap(surface->mins, surface->maxs, info->boxmins, info->boxmaxs))
                        {
-                               qboolean insidebox = BoxInsideBox(surface->mins, surface->maxs, info->boxmins, info->boxmaxs);
-                               qboolean addedtris = false;
+                               qbool insidebox = BoxInsideBox(surface->mins, surface->maxs, info->boxmins, info->boxmaxs);
+                               qbool addedtris = false;
                                int t, tend;
                                const int *elements;
                                const float *vertex3f;
@@ -339,7 +339,7 @@ static void Portal_RecursiveFlow (portalrecursioninfo_t *info, mleaf_t *leaf, in
                                        VectorCopy(vertex3f + elements[1] * 3, v + 3);
                                        VectorCopy(vertex3f + elements[2] * 3, v + 6);
                                        if (PointInfrontOfTriangle(info->eye, v + 0, v + 3, v + 6)
-                                        && (insidebox || TriangleOverlapsBox(v, v + 3, v + 6, info->boxmins, info->boxmaxs))
+                                        && (insidebox || TriangleBBoxOverlapsBox(v, v + 3, v + 6, info->boxmins, info->boxmaxs))
                                         && (!info->exact || Portal_PortalThroughPortalPlanes(&portalplanes[firstclipplane], numclipplanes, v, 3, &portaltemppoints2[0][0], 256) > 0))
                                        {
                                                addedtris = true;