]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - model_shared.c
fix a bunch of warnings
[xonotic/darkplaces.git] / model_shared.c
index e1d86cbf26b6f93f1614341f1f25311a7abac5ed..45fd314344eae43c4ac3a9d65d130587a0271508 100644 (file)
@@ -2693,7 +2693,6 @@ static void Mod_Decompile_SMD(dp_model_t *model, const char *filename, int first
                        outbufferpos += l;
                for (transformindex = 0;transformindex < model->num_bones;transformindex++)
                {
-                       float a, b, c;
                        float angles[3];
                        float mtest[4][3];
                        matrix4x4_t posematrix;
@@ -2715,12 +2714,11 @@ static void Mod_Decompile_SMD(dp_model_t *model, const char *filename, int first
                        if (angles[1] >= 180) angles[1] -= 360;
                        if (angles[2] >= 180) angles[2] -= 360;
 
-                       a = DEG2RAD(angles[ROLL]);
-                       b = DEG2RAD(angles[PITCH]);
-                       c = DEG2RAD(angles[YAW]);
-
 #if 0
 {
+                       float a = DEG2RAD(angles[ROLL]);
+                       float b = DEG2RAD(angles[PITCH]);
+                       float c = DEG2RAD(angles[YAW]);
                        float cy, sy, cp, sp, cr, sr;
                        float test[4][3];
                        // smd matrix construction, for comparing
@@ -3622,7 +3620,7 @@ static void Mod_GenerateLightmaps_CreateLightmaps(dp_model_t *model)
        float lm_basescalepixels;
        int lm_borderpixels;
        int lm_texturesize;
-       int lm_maxpixels;
+       //int lm_maxpixels;
        const int *e;
        lightmaptriangle_t *triangle;
        unsigned char *lightmappixels;
@@ -3635,7 +3633,7 @@ static void Mod_GenerateLightmaps_CreateLightmaps(dp_model_t *model)
        lm_basescalepixels = 1.0f / max(0.0001f, mod_generatelightmaps_unitspersample.value);
        lm_borderpixels = mod_generatelightmaps_borderpixels.integer;
        lm_texturesize = bound(lm_borderpixels*2+1, 64, (int)vid.maxtexturesize_2d);
-       lm_maxpixels = lm_texturesize-(lm_borderpixels*2+1);
+       //lm_maxpixels = lm_texturesize-(lm_borderpixels*2+1);
        Mod_AllocLightmap_Init(&lmstate, lm_texturesize, lm_texturesize);
        lightmapnumber = 0;
        for (surfaceindex = 0;surfaceindex < model->num_surfaces;surfaceindex++)