Skip to content

Commit

Permalink
Pass pauseDuration 0 for manual resume
Browse files Browse the repository at this point in the history
  • Loading branch information
samme committed Jul 21, 2024
1 parent 2824185 commit 96bae29
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ var Game = new Class({

if (wasPaused)
{
this.events.emit(Events.RESUME);
this.events.emit(Events.RESUME, 0);
}
},

Expand Down
2 changes: 1 addition & 1 deletion src/core/events/RESUME_EVENT.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';

0 comments on commit 96bae29

Please sign in to comment.