From: havoc Date: Sun, 29 Jun 2008 20:22:10 +0000 (+0000) Subject: declare local variables properly X-Git-Tag: xonotic-v0.1.0preview~2195 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=7082d2637f3b17e6073a57cb5b32b5bad19b9033;p=xonotic%2Fdarkplaces.git declare local variables properly git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8380 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/model_alias.c b/model_alias.c index 7c6a8531..724834ec 100644 --- a/model_alias.c +++ b/model_alias.c @@ -49,12 +49,12 @@ void Mod_Skeletal_AnimateVertices(const dp_model_t *model, const frameblend_t *f #define MAX_BONES 256 // vertex weighted skeletal int i, k; + int blends; float boneposerelative[MAX_BONES][12]; + float *matrix, m[12], bonepose[MAX_BONES][12]; // interpolate matrices and concatenate them to their parents for (i = 0;i < model->num_bones;i++) { - int blends; - float *matrix, m[12], bonepose[MAX_BONES][12]; for (k = 0;k < 12;k++) m[k] = 0; for (blends = 0;blends < 4 && frameblend[blends].lerp > 0;blends++)