From 52ec8dc37ec15fdcf5a6c83cc69c75ffc4dccaf1 Mon Sep 17 00:00:00 2001 From: Thomas Forgione Date: Wed, 22 Aug 2018 16:25:34 +0200 Subject: [PATCH] Fixed auto jump when unpausing --- src/scene.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/scene.js b/src/scene.js index e4e05b8..8ba9f12 100644 --- a/src/scene.js +++ b/src/scene.js @@ -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; } }