mirror of
https://github.com/photonstorm/phaser
synced 2024-11-10 15:14:47 +00:00
Time.reset would incorrectly reset the _started
property, now maps it to Time.time
(thanks @XekeDeath #1467)
This commit is contained in:
parent
013abfe956
commit
a6c6bf8e06
2 changed files with 2 additions and 1 deletions
|
@ -104,6 +104,7 @@ Android browser does not support Full Screen.
|
|||
* The P2 World constructor wouldn't let you use your own config unless you specified both the gravity *and* broadphase. Now allows one or both (thanks @englercj #1412)
|
||||
* The RandomDataGenerator could be seeded with an array of values. However if the array contained a zero it would stop seeding from that point (thanks @jpcloud @pnstickne #1456)
|
||||
* Added extra checks to Sound.play to stop it throwing DOM Exception Error 11 if the `sound.readyState` wasn't set or the sound was invalid. Also wrapped `stop()`` call in a `try catch`.
|
||||
* Time.reset would incorrectly reset the `_started` property, now maps it to `Time.time` (thanks @XekeDeath #1467)
|
||||
|
||||
### Pixi.js 2.2.0 Updates
|
||||
|
||||
|
|
|
@ -506,7 +506,7 @@ Phaser.Time.prototype = {
|
|||
*/
|
||||
reset: function () {
|
||||
|
||||
this._started = this.now;
|
||||
this._started = this.time;
|
||||
this.removeAll();
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue