- VectorCopy(vertex3f + elements[0] * 3, v + 0);
- 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))
- && (!info->exact || Portal_PortalThroughPortalPlanes(&portalplanes[firstclipplane], numclipplanes, v, 3, &portaltemppoints2[0][0], 256) > 0))
- {
- addedtris = true;
- if (info->shadowtrispvs)
- SETPVSBIT(info->shadowtrispvs, t);
- if (info->lighttrispvs)
- SETPVSBIT(info->lighttrispvs, t);
- }
- }
- if (addedtris)
- {
- SETPVSBIT(info->surfacepvs, surfaceindex);
- info->surfacelist[info->numsurfaces++] = surfaceindex;
+ addedtris = true;
+ if (info->shadowtrispvs)
+ SETPVSBIT(info->shadowtrispvs, t);
+ if (info->lighttrispvs)
+ SETPVSBIT(info->lighttrispvs, t);