Fixed auto jump when unpausing

This commit is contained in:
Thomas Forgione 2018-08-22 16:25:34 +02:00
parent 7f9a6432ab
commit 52ec8dc37e
No known key found for this signature in database
GPG Key ID: 203DAEA747F48F41
1 changed files with 2 additions and 0 deletions

View File

@ -286,9 +286,11 @@ class Scene extends Screen {
if (this.started) {
if (this.status === Status.Running && isInBox(position(e), this.makePauseBox())) {
this.status = Status.Paused;
return;
} else if (this.status === Status.Paused) {
this.status = Status.Waking;
this.wakingTimer = 3;
return;
}
}