winding_t *neww;
int maxpts;
- // debugging
- Mem_CheckSentinels(in);
-
counts[SIDE_FRONT] = counts[SIDE_BACK] = counts[SIDE_ON] = 0;
// determine sides for each point
if (neww->numpoints >= maxpts)
Sys_Error ("ClipWinding: points exceeded estimate");
- Mem_CheckSentinels(neww);
-
p1 = in->points[i];
if (sides[i] == SIDE_ON)
{
VectorCopy (p1, neww->points[neww->numpoints]);
neww->numpoints++;
- Mem_CheckSentinels(neww);
continue;
}
{
VectorCopy (p1, neww->points[neww->numpoints]);
neww->numpoints++;
- Mem_CheckSentinels(neww);
}
if (sides[i+1] == SIDE_ON || sides[i+1] == sides[i])
VectorCopy (mid, neww->points[neww->numpoints]);
neww->numpoints++;
- Mem_CheckSentinels(neww);
}
// free the original winding
winding_t *f, *b;
int maxpts;
- // debugging
- Mem_CheckSentinels(in);
-
counts[SIDE_FRONT] = counts[SIDE_BACK] = counts[SIDE_ON] = 0;
// determine sides for each point
{
VectorCopy (p1, f->points[f->numpoints]);
f->numpoints++;
- Mem_CheckSentinels(f);
VectorCopy (p1, b->points[b->numpoints]);
b->numpoints++;
- Mem_CheckSentinels(b);
continue;
}
{
VectorCopy (p1, f->points[f->numpoints]);
f->numpoints++;
- Mem_CheckSentinels(f);
}
else if (sides[i] == SIDE_BACK)
{
VectorCopy (p1, b->points[b->numpoints]);
b->numpoints++;
- Mem_CheckSentinels(b);
}
if (sides[i+1] == SIDE_ON || sides[i+1] == sides[i])
VectorCopy (mid, f->points[f->numpoints]);
f->numpoints++;
- Mem_CheckSentinels(f);
VectorCopy (mid, b->points[b->numpoints]);
b->numpoints++;
- Mem_CheckSentinels(b);
}
// debugging
mleaf_t *leaf, *endleaf;
winding_t *w;
- Mem_CheckSentinelsGlobal();
+ //Mem_CheckSentinelsGlobal();
// recalculate bounding boxes for all leafs (because qbsp is very sloppy)
leaf = loadmodel->leafs;
Mod_RecursiveRecalcNodeBBox(loadmodel->nodes);
- Mem_CheckSentinelsGlobal();
+ //Mem_CheckSentinelsGlobal();
// tally up portal and point counts
p = portalchain;
p = pnext;
}
- Mem_CheckSentinelsGlobal();
+ //Mem_CheckSentinelsGlobal();
}
/*
nodeportal->plane = *node->plane;
nodeportalwinding = BaseWindingForPlane (node->plane);
- Mem_CheckSentinels(nodeportalwinding);
+ //Mem_CheckSentinels(nodeportalwinding);
side = 0; // shut up compiler warning
for (portal = (portal_t *)node->portals;portal;portal = portal->next[side])
{