]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - curves.c
Missed the cl_particles.c edits to remove RSurf_ActiveWorldEntity. I blame VS2017...
[xonotic/darkplaces.git] / curves.c
index ba7e129ab6d8b41774147bd074e9d58e91d06584..cf7569dba482a202a641553ed5a31fa59dc220c0 100644 (file)
--- a/curves.c
+++ b/curves.c
@@ -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)