Moved the this._reversed flag outside of the property loop in Tween (as per tween.js issue 115)

This commit is contained in:
photonstorm 2014-05-01 02:40:36 +01:00
parent bd4c2176f0
commit 69c868f67d

View file

@ -718,12 +718,16 @@ Phaser.Tween.prototype = {
var tmp = this._valuesStartRepeat[property];
this._valuesStartRepeat[property] = this._valuesEnd[property];
this._valuesEnd[property] = tmp;
this._reversed = !this._reversed;
}
this._valuesStart[property] = this._valuesStartRepeat[property];
}
if (this._yoyo)
{
this._reversed = !this._reversed;
}
this._startTime = time + this._delayTime;
this.onLoop.dispatch(this._object);