Rectangle.bottom setter swapped the order of the calculation (thanks @JakeCoxon #1165)

This commit is contained in:
Richard Davey 2014-09-03 22:42:24 +01:00
parent fe0c03d5d7
commit 168ce82fe8
2 changed files with 2 additions and 1 deletions

View file

@ -177,6 +177,7 @@ Version 2.1.0 - "Cairhien" - -in development-
* Added Sound._muteVolume which stops Firefox and IE9 crashing if you try to unmute a sound that hasn't yet been muted, which can also happen as a result of a game visibility change (thanks @osmanzeki #1108 #1123)
* P2.World.getSprings used to return an empty array, but now returns all the Springs in the world (#1134)
* Tween.generateData would skip the end values in the data array. They are now included as the object in the final array element.
* Rectangle.bottom setter swapped the order of the calculation (thanks @JakeCoxon #1165)
### p2.js 0.6.0 Changes and New Features

View file

@ -334,7 +334,7 @@ Object.defineProperty(Phaser.Rectangle.prototype, "bottom", {
if (value <= this.y) {
this.height = 0;
} else {
this.height = (this.y - value);
this.height = value - this.y;
}
}