This commit is contained in:
Ricardo Luís Vaz Silva 2024-09-17 14:12:45 -03:00
parent 0c3ebf451f
commit 712dd1133d

View file

@ -290,7 +290,7 @@ void calcFrame(const ModelAnim &anim, double tic, ModelAnimFrameInterp &inter)
inter.frame2 = int(ceil(frame));
int startFrame = (looped ? anim.startFrame : anim.loopFrame);
int startFrame = (looped ? anim.loopFrame : anim.startFrame);
if(inter.frame1 < startFrame) inter.frame1 = anim.lastFrame;
if(inter.frame2 > anim.lastFrame) inter.frame2 = startFrame;