Skip to content

Commit

Permalink
Merge pull request phaserjs#1017 from devinb83/dev-codepaused
Browse files Browse the repository at this point in the history
codePaused should be set if manually called
  • Loading branch information
photonstorm committed Jul 18, 2014
2 parents 94978a6 + 4a632ed commit d8c755a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Game.js
Original file line number Diff line number Diff line change
Expand Up @@ -857,23 +857,23 @@ Object.defineProperty(Phaser.Game.prototype, "paused", {
if (this._paused === false)
{
this._paused = true;
this._codePaused = true;
this.sound.setMute();
this.time.gamePaused();
this.onPause.dispatch(this);
}
this._codePaused = true;
}
else
{
if (this._paused)
{
this._paused = false;
this._codePaused = false;
this.input.reset();
this.sound.unsetMute();
this.time.gameResumed();
this.onResume.dispatch(this);
}
this._codePaused = false;
}

}
Expand Down

0 comments on commit d8c755a

Please sign in to comment.