mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-29 23:52:22 +00:00
correct a spelling error and make a comment a little clearer
This commit is contained in:
parent
b6edd778e7
commit
c57b395a0f
2 changed files with 9 additions and 8 deletions
|
@ -78,7 +78,7 @@ CheckStack (leaf_t *leaf, threaddata_t *thread)
|
|||
}
|
||||
|
||||
/*
|
||||
ClipToSeperators
|
||||
ClipToSeparators
|
||||
|
||||
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.
|
||||
*/
|
||||
winding_t *
|
||||
ClipToSeperators (winding_t *source, winding_t *pass, winding_t *target,
|
||||
ClipToSeparators (winding_t *source, winding_t *pass, winding_t *target,
|
||||
qboolean flipclip)
|
||||
{
|
||||
float d;
|
||||
|
@ -193,7 +193,7 @@ ClipToSeperators (winding_t *source, winding_t *pass, winding_t *target,
|
|||
target = ClipWinding (target, &plane, false);
|
||||
if (!target)
|
||||
return NULL; // target is not visible
|
||||
break; //XXX is this correct? big speedup
|
||||
//break; //XXX is this correct? big speedup
|
||||
}
|
||||
}
|
||||
return target;
|
||||
|
@ -306,7 +306,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
|
|||
c_portaltest++;
|
||||
|
||||
if (options.level > 0) {
|
||||
target = ClipToSeperators (source, prevstack->pass, target, false);
|
||||
target = ClipToSeparators (source, prevstack->pass, target, false);
|
||||
if (!target) {
|
||||
FreeWinding (source);
|
||||
continue;
|
||||
|
@ -314,7 +314,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
|
|||
}
|
||||
|
||||
if (options.level > 1) {
|
||||
target = ClipToSeperators (prevstack->pass, source, target, true);
|
||||
target = ClipToSeparators (prevstack->pass, source, target, true);
|
||||
if (!target) {
|
||||
FreeWinding (source);
|
||||
continue;
|
||||
|
@ -322,7 +322,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
|
|||
}
|
||||
|
||||
if (options.level > 2) {
|
||||
source = ClipToSeperators (target, prevstack->pass, source, false);
|
||||
source = ClipToSeparators (target, prevstack->pass, source, false);
|
||||
if (!source) {
|
||||
FreeWinding (target);
|
||||
continue;
|
||||
|
@ -330,7 +330,7 @@ RecursiveLeafFlow (int leafnum, threaddata_t *thread, pstack_t *prevstack)
|
|||
}
|
||||
|
||||
if (options.level > 3) {
|
||||
source = ClipToSeperators (prevstack->pass, target, source, true);
|
||||
source = ClipToSeparators (prevstack->pass, target, source, true);
|
||||
if (!source) {
|
||||
FreeWinding (target);
|
||||
continue;
|
||||
|
|
|
@ -646,7 +646,8 @@ LoadPortals (char *name)
|
|||
bitbytes = ((portalleafs + 63) & ~63) >> 3;
|
||||
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));
|
||||
|
||||
leafs = calloc (portalleafs, sizeof (leaf_t));
|
||||
|
|
Loading…
Reference in a new issue