Parameter consistency fixes.

Make the params for FreeWinding and CopyWinding consistent with those in
qfbsp. This fixes some doxygen warnings while I think about how best to
handle the duplicate code.
This commit is contained in:
Bill Currie 2010-08-31 21:54:48 +09:00
parent ad8b08238d
commit 142defe9c0
2 changed files with 8 additions and 8 deletions

View file

@ -133,10 +133,10 @@ extern int c_chains;
extern int c_mighttest;
extern int c_vistest;
void FreeWinding (winding_t *winding);
void FreeWinding (winding_t *w);
winding_t *NewWinding (int points);
winding_t *ClipWinding (winding_t *in, plane_t *split, qboolean keepon);
winding_t *CopyWinding (winding_t *winding);
winding_t *CopyWinding (winding_t *w);
void ClusterFlow (int clusternum);
void BasePortalVis (void);

View file

@ -126,21 +126,21 @@ NewWinding (int points)
}
void
FreeWinding (winding_t *winding)
FreeWinding (winding_t *w)
{
if (!winding->original)
free (winding);
if (!w->original)
free (w);
}
winding_t *
CopyWinding (winding_t *winding)
CopyWinding (winding_t *w)
{
size_t size;
winding_t *copy;
size = (size_t) (uintptr_t) ((winding_t *) 0)->points[winding->numpoints];
size = (size_t) (uintptr_t) ((winding_t *) 0)->points[w->numpoints];
copy = malloc (size);
memcpy (copy, winding, size);
memcpy (copy, w, size);
copy->original = false;
return copy;
}