Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
RicardoLuis0 committed Sep 17, 2024
1 parent 79d885f commit db8ad07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/r_data/models.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit db8ad07

Please sign in to comment.