Skip to content

Commit

Permalink
Fix for attack animations not reseting when done.
Browse files Browse the repository at this point in the history
  • Loading branch information
Interrupt committed Nov 28, 2018
1 parent 7c8bd72 commit 38085f0
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -135,7 +135,7 @@ public void animate(float delta) {
curRotation.y = lerpFrame.apply(curFrameRotation.y, nextFrameRotation.y, t);
curRotation.z = lerpFrame.apply(curFrameRotation.z, nextFrameRotation.z, t);

if(startTexOffset == endTexOffset) {
if(startTexOffset == endTexOffset || !playing) {
curTexOffset = startTexOffset;
}
else {
Expand Down

0 comments on commit 38085f0

Please sign in to comment.