mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 07:01:20 +00:00
Moved the this._reversed flag outside of the property loop in Tween (as per tween.js issue 115)
This commit is contained in:
parent
bd4c2176f0
commit
69c868f67d
1 changed files with 5 additions and 1 deletions
|
@ -718,12 +718,16 @@ Phaser.Tween.prototype = {
|
||||||
var tmp = this._valuesStartRepeat[property];
|
var tmp = this._valuesStartRepeat[property];
|
||||||
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
this._valuesStartRepeat[property] = this._valuesEnd[property];
|
||||||
this._valuesEnd[property] = tmp;
|
this._valuesEnd[property] = tmp;
|
||||||
this._reversed = !this._reversed;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
this._valuesStart[property] = this._valuesStartRepeat[property];
|
this._valuesStart[property] = this._valuesStartRepeat[property];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (this._yoyo)
|
||||||
|
{
|
||||||
|
this._reversed = !this._reversed;
|
||||||
|
}
|
||||||
|
|
||||||
this._startTime = time + this._delayTime;
|
this._startTime = time + this._delayTime;
|
||||||
|
|
||||||
this.onLoop.dispatch(this._object);
|
this.onLoop.dispatch(this._object);
|
||||||
|
|
Loading…
Reference in a new issue