X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=curves.c;h=58ce43d024a12af101921901f9e1362d0d6ae889;hb=a51a70c2254b27a68e5fe74cc5985b02dc36e1e9;hp=ba7e129ab6d8b41774147bd074e9d58e91d06584;hpb=1fd37f5239fe019e4d53c3e19b6fa9ff67da12e1;p=xonotic%2Fdarkplaces.git diff --git a/curves.c b/curves.c index ba7e129a..58ce43d0 100644 --- a/curves.c +++ b/curves.c @@ -1,6 +1,6 @@ /* -this code written by Forest Hale, on 2004-10-17, and placed into public domain +this code written by Ashley Rose Hale (LadyHavoc), on 2004-10-17, and placed into public domain this implements Quadratic BSpline surfaces as seen in Quake3 by id Software a small rant on misuse of the name 'bezier': many people seem to think that @@ -156,7 +156,7 @@ static int Q3PatchTesselation(float largestsquared3xcurvearea, float tolerance) // maps [4..8[ to 4 } -float Squared3xCurveArea(const float *a, const float *control, const float *b, int components) +static float Squared3xCurveArea(const float *a, const float *control, const float *b, int components) { #if 0 // mimicing the old behaviour with the new code... @@ -336,7 +336,7 @@ int Q3PatchAdjustTesselation(int numcomponents, patchinfo_t *patch1, float *patc struct {int id1,id2;} commonverts[8]; int i, j, k, side1, side2, *tess1, *tess2; - int dist1, dist2; + int dist1 = 0, dist2 = 0; qboolean modified = false; // Potential paired vertices (corners of the first patch)