]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
silence warning about using uninitialized pose var
authoreihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 9 Jan 2010 18:48:38 +0000 (18:48 +0000)
committereihrul <eihrul@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 9 Jan 2010 18:48:38 +0000 (18:48 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@9821 d7cf8633-e32d-0410-b094-e92efae38249

model_shared.c

index 9d44b9c822093a44297dc4dc9bc8d61c95c108e0..8e2d2a6424c19ee50d42cbd4c50e463564bbc016 100644 (file)
@@ -2651,7 +2651,9 @@ static void Mod_Decompile_SMD(dp_model_t *model, const char *filename, int first
        int poseindex;
        int cornerindex;
        const int *e;
+#if 0
        const float *pose;
+#endif
        size_t l;
        size_t outbufferpos = 0;
        size_t outbuffermax = 0x100000;
@@ -2684,7 +2686,7 @@ static void Mod_Decompile_SMD(dp_model_t *model, const char *filename, int first
                l = dpsnprintf(outbuffer + outbufferpos, outbuffermax - outbufferpos, "time %i\n", poseindex);
                if (l > 0)
                        outbufferpos += l;
-               for (transformindex = 0;transformindex < model->num_bones;transformindex++, pose += 12)
+               for (transformindex = 0;transformindex < model->num_bones;transformindex++ /*, pose += 12 */)
                {
                        float a, b, c;
                        float angles[3];