mirror of
https://github.com/photonstorm/phaser
synced 2024-11-23 21:24:09 +00:00
StateManager.restart incorrectly skipped the first additional parameter after clearCache (thanks @mariusbrn, fix #722)
This commit is contained in:
parent
25a93cf4af
commit
eeff786eb2
2 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ Version 2.0.4 - "Mos Shirare" - in development
|
||||||
* Fixed the use of the destroy parameter in Group.removeAll and related functions (thanks @AnderbergE, fix #717)
|
* Fixed the use of the destroy parameter in Group.removeAll and related functions (thanks @AnderbergE, fix #717)
|
||||||
* P2.World.convertTilemap now correctly checks the collides parameter of the tiles as it converts them.
|
* P2.World.convertTilemap now correctly checks the collides parameter of the tiles as it converts them.
|
||||||
* Animation.destroy didn't correctly clear the onStart, onLoop and onComplete signals.
|
* Animation.destroy didn't correctly clear the onStart, onLoop and onComplete signals.
|
||||||
|
* StateManager.restart incorrectly skipped the first additional parameter after clearCache (thanks @mariusbrn, fix #722)
|
||||||
|
|
||||||
|
|
||||||
There is an extensive [Migration Guide](https://github.com/photonstorm/phaser/blob/master/resources/Migration%20Guide.md) available for those converting from Phaser 1.x to 2.x. In the guide we detail the API breaking changes and approach to our new physics system.
|
There is an extensive [Migration Guide](https://github.com/photonstorm/phaser/blob/master/resources/Migration%20Guide.md) available for those converting from Phaser 1.x to 2.x. In the guide we detail the API breaking changes and approach to our new physics system.
|
||||||
|
|
|
@ -275,9 +275,9 @@ Phaser.StateManager.prototype = {
|
||||||
this._clearWorld = clearWorld;
|
this._clearWorld = clearWorld;
|
||||||
this._clearCache = clearCache;
|
this._clearCache = clearCache;
|
||||||
|
|
||||||
if (arguments.length > 3)
|
if (arguments.length > 2)
|
||||||
{
|
{
|
||||||
this._args = Array.prototype.splice.call(arguments, 3);
|
this._args = Array.prototype.splice.call(arguments, 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue