Skip to content

Commit

Permalink
Merge pull request #6870 from samme/feature/timestep-pauseDuration-2
Browse files Browse the repository at this point in the history
Pass pauseDuration 0 in `Phaser.Core.Events#RESUME` after manual game resume
  • Loading branch information
photonstorm authored Jul 23, 2024
2 parents 412d0e5 + 96bae29 commit 49456a0
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 49456a0

Please sign in to comment.