correct a spelling error and make a comment a little clearer

This commit is contained in:
Bill Currie 2002-09-22 03:48:16 +00:00
parent b6edd778e7
commit c57b395a0f
2 changed files with 9 additions and 8 deletions

View file

@ -78,7 +78,7 @@ CheckStack (leaf_t *leaf, threaddata_t *thread)
} }
/* /*
ClipToSeperators ClipToSeparators
Source, pass, and target are an ordering of portals. Source, pass, and target are an ordering of portals.
@ -92,7 +92,7 @@ CheckStack (leaf_t *leaf, threaddata_t *thread)
then flipclip should be set. then flipclip should be set.
*/ */
winding_t * winding_t *
ClipToSeperators (winding_t *source, winding_t *pass, winding_t *target, ClipToSeparators (winding_t *source, winding_t *pass, winding_t *target,
qboolean flipclip) qboolean flipclip)
{ {
float d; float d;
@ -193,7 +193,7 @@ ClipToSeperators (winding_t *source, winding_t *pass, winding_t *target,
target = ClipWinding (target, &plane, false); target = ClipWinding (target, &plane, false);
if (!target) if (!target)
return NULL; // target is not visible return NULL; // target is not visible
break; //XXX is this correct? big speedup //break; //XXX is this correct? big speedup
} }
} }
return target; return target;
@ -306,7 +306,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
c_portaltest++; c_portaltest++;
if (options.level > 0) { if (options.level > 0) {
target = ClipToSeperators (source, prevstack->pass, target, false); target = ClipToSeparators (source, prevstack->pass, target, false);
if (!target) { if (!target) {
FreeWinding (source); FreeWinding (source);
continue; continue;
@ -314,7 +314,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
} }
if (options.level > 1) { if (options.level > 1) {
target = ClipToSeperators (prevstack->pass, source, target, true); target = ClipToSeparators (prevstack->pass, source, target, true);
if (!target) { if (!target) {
FreeWinding (source); FreeWinding (source);
continue; continue;
@ -322,7 +322,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
} }
if (options.level > 2) { if (options.level > 2) {
source = ClipToSeperators (target, prevstack->pass, source, false); source = ClipToSeparators (target, prevstack->pass, source, false);
if (!source) { if (!source) {
FreeWinding (target); FreeWinding (target);
continue; continue;
@ -330,7 +330,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
} }
if (options.level > 3) { if (options.level > 3) {
source = ClipToSeperators (prevstack->pass, target, source, true); source = ClipToSeparators (prevstack->pass, target, source, true);
if (!source) { if (!source) {
FreeWinding (target); FreeWinding (target);
continue; continue;

View file

@ -646,7 +646,8 @@ LoadPortals (char *name)
bitbytes = ((portalleafs + 63) & ~63) >> 3; bitbytes = ((portalleafs + 63) & ~63) >> 3;
bitlongs = bitbytes / sizeof (long); bitlongs = bitbytes / sizeof (long);
// each file portal is split into two memory portals // each file portal is split into two memory portals, one for each
// direction
portals = calloc (2 * numportals, sizeof (portal_t)); portals = calloc (2 * numportals, sizeof (portal_t));
leafs = calloc (portalleafs, sizeof (leaf_t)); leafs = calloc (portalleafs, sizeof (leaf_t));