Merge pull request #6870 from samme/feature/timestep-pauseDuration-2

Pass pauseDuration 0 in `Phaser.Core.Events#RESUME` after manual game resume
This commit is contained in:
Richard Davey 2024-07-23 16:53:01 +01:00 committed by GitHub
commit 49456a08b8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -650,7 +650,7 @@ var Game = new Class({
if (wasPaused)
{
this.events.emit(Events.RESUME);
this.events.emit(Events.RESUME, 0);
}
},

View file

@ -13,6 +13,6 @@
* @type {string}
* @since 3.0.0
*
* @param {number} pauseDuration - The duration, in ms, that the game was paused for.
* @param {number} pauseDuration - The duration, in ms, that the game was paused for, or 0 if {@link Phaser.Game#resume} was called.
*/
module.exports = 'resume';