]> git.jsancho.org Git - lugaru.git/blobdiff - Source/Animation/Skeleton.cpp
Fixing some warnings of cppcheck
[lugaru.git] / Source / Animation / Skeleton.cpp
index 014117c5410fd7c8527e8ca244e404f946ded850..191f3cfa3e6a1f016f47a8fc910ce81186f01f11 100644 (file)
@@ -107,7 +107,6 @@ void Skeleton::FindForwards()
  */
 float Skeleton::DoConstraints(XYZ *coords, float *scale)
 {
-    float friction = 1.5;
     const float elasticity = .3;
     XYZ bounceness;
     const int numrepeats = 3;
@@ -230,6 +229,7 @@ float Skeleton::DoConstraints(XYZ *coords, float *scale)
                 muscles[i].DoConstraint(spinny);
             }
 
+            float friction;
             for (i = 0; i < joints.size(); i++) {
                 //Length constraints
                 //Ground constraint