mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 13:10:34 +00:00
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:
parent
ad8b08238d
commit
142defe9c0
2 changed files with 8 additions and 8 deletions
|
@ -133,10 +133,10 @@ extern int c_chains;
|
||||||
extern int c_mighttest;
|
extern int c_mighttest;
|
||||||
extern int c_vistest;
|
extern int c_vistest;
|
||||||
|
|
||||||
void FreeWinding (winding_t *winding);
|
void FreeWinding (winding_t *w);
|
||||||
winding_t *NewWinding (int points);
|
winding_t *NewWinding (int points);
|
||||||
winding_t *ClipWinding (winding_t *in, plane_t *split, qboolean keepon);
|
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 ClusterFlow (int clusternum);
|
||||||
void BasePortalVis (void);
|
void BasePortalVis (void);
|
||||||
|
|
|
@ -126,21 +126,21 @@ NewWinding (int points)
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
FreeWinding (winding_t *winding)
|
FreeWinding (winding_t *w)
|
||||||
{
|
{
|
||||||
if (!winding->original)
|
if (!w->original)
|
||||||
free (winding);
|
free (w);
|
||||||
}
|
}
|
||||||
|
|
||||||
winding_t *
|
winding_t *
|
||||||
CopyWinding (winding_t *winding)
|
CopyWinding (winding_t *w)
|
||||||
{
|
{
|
||||||
size_t size;
|
size_t size;
|
||||||
winding_t *copy;
|
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);
|
copy = malloc (size);
|
||||||
memcpy (copy, winding, size);
|
memcpy (copy, w, size);
|
||||||
copy->original = false;
|
copy->original = false;
|
||||||
return copy;
|
return copy;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue