From 6d318a4102cd88f372cf89c154ea1782363f726f Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin <15944199+nekonomicon@users.noreply.github.com> Date: Mon, 16 Oct 2023 11:00:40 +0500 Subject: [PATCH] utils: mdldec: smd.c: replace loop with VectorMA. --- utils/mdldec/smd.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/mdldec/smd.c b/utils/mdldec/smd.c index 90a77015..9c3b4a5b 100644 --- a/utils/mdldec/smd.c +++ b/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 ); - for( j = 0; j < 3; j++ ) - motion[j] += scale * seqdesc->linearmovement[j]; + VectorMA( motion, scale, seqdesc->linearmovement, motion ); ProperBoneRotationZ( motion, 270.0f ); }