Skip to content

Commit

Permalink
[fixed] issue 822: simplified statement to calculate interpolated alp…
Browse files Browse the repository at this point in the history
…ha value

git-svn-id: http://libgdx.googlecode.com/svn/trunk@3905 6c4fd544-2939-11df-bb46-9574ba5d0bfa
  • Loading branch information
seraphim6x7@gmail.com committed May 7, 2012
1 parent 3e2d81b commit aa43ba8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gdx/src/com/badlogic/gdx/scenes/scene2d/AnimationAction.java
Expand Up @@ -61,8 +61,7 @@ protected float createInterpolatedAlpha (float delta) {
} else if (interpolator == null) {
return taken * invDuration;
} else {
float interpolatedTime = interpolator.getInterpolation(taken / duration) * duration;
return interpolatedTime * invDuration;
return interpolator.getInterpolation(taken * invDuration);
}
}

Expand Down

0 comments on commit aa43ba8

Please sign in to comment.