Browse Source

utils: mdldec: smd.c: replace loop with VectorMA.

pull/2/head
Andrey Akhmichin 1 year ago committed by Alibek Omarov
parent
commit
6d318a4102
  1. 3
      utils/mdldec/smd.c

3
utils/mdldec/smd.c

@ -399,8 +399,7 @@ static void WriteFrameInfo( FILE *fp, mstudioanim_t *anim, mstudioseqdesc_t *seq @@ -399,8 +399,7 @@ static void WriteFrameInfo( FILE *fp, mstudioanim_t *anim, mstudioseqdesc_t *seq
{
scale = frame / (float)( seqdesc->numframes - 1 );
for( j = 0; j < 3; j++ )
motion[j] += scale * seqdesc->linearmovement[j];
VectorMA( motion, scale, seqdesc->linearmovement, motion );
ProperBoneRotationZ( motion, 270.0f );
}

Loading…
Cancel
Save