We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5c69328 commit 7c9db8fCopy full SHA for 7c9db8f
1 file changed
src/animation/Animation.js
@@ -381,7 +381,6 @@ Phaser.Animation.prototype = {
381
// And what's left now?
382
this._timeNextFrame = this.game.time.time + (this.delay - this._frameDiff);
383
384
- var fi = this._frameIndex;
385
this._frameIndex += this._frameSkip;
386
387
if (this._frameIndex >= this._frames.length)
@@ -437,7 +436,7 @@ Phaser.Animation.prototype = {
437
436
{
438
this.currentFrame = this._frameData.getFrame(this._frames[this._frameIndex]);
439
440
- if (this.currentFrame && idx !== this.currentFrame.index)
+ if (this.currentFrame)
441
442
this._parent.setFrame(this.currentFrame);
443
}
0 commit comments