Fix compatibility with Phaser 2.3

This commit is contained in:
Pierre
2015-03-26 16:22:54 +01:00
parent 0cc0561d23
commit 4b199a384b
+3 -3
View File
@@ -1,10 +1,10 @@
/**
* @class Phaser.Plugin.Isometric.Body
*
*
* @classdesc
* The Physics Body is linked to a single IsoSprite. All physics operations should be performed against the body rather than
* the IsoSprite itself. For example you can set the velocity, acceleration, bounce values etc all on the Body.
*
*
* @constructor
* @param {Phaser.Plugin.Isometric.IsoSprite} sprite - The IsoSprite object this physics body belongs to.
*/
@@ -485,7 +485,7 @@ Phaser.Plugin.Isometric.Body.prototype = {
this.preRotation = this.rotation;
if (this._reset || this.sprite._cache[4] === 1) {
if (this._reset || this.sprite.fresh === true) {
this.prev.x = this.position.x;
this.prev.y = this.position.y;
this.prev.z = this.position.z;