X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=portals.c;h=2872a8ca89c1a3faaa1fe22ef11cc8be242a1a94;hb=33e798ded42578ed4b8315247b41ce685466ea01;hp=0900a34f8f6c9c6fb41dc12b53c77baaa03a8398;hpb=cfee52a1ec9db338098789cae89ae5cf1f7a6fbf;p=xonotic%2Fdarkplaces.git diff --git a/portals.c b/portals.c index 0900a34f..2872a8ca 100644 --- a/portals.c +++ b/portals.c @@ -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;