Browse Source

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

pull/2/head
Andrey Akhmichin 9 months 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
{ {
scale = frame / (float)( seqdesc->numframes - 1 ); scale = frame / (float)( seqdesc->numframes - 1 );
for( j = 0; j < 3; j++ ) VectorMA( motion, scale, seqdesc->linearmovement, motion );
motion[j] += scale * seqdesc->linearmovement[j];
ProperBoneRotationZ( motion, 270.0f ); ProperBoneRotationZ( motion, 270.0f );
} }

Loading…
Cancel
Save