From fc0ce1ada1722213952e24a966ffc4a00a90cd27 Mon Sep 17 00:00:00 2001 From: krypek Date: Sat, 6 Jan 2024 20:29:37 +0100 Subject: [PATCH] Fix options menu getting interrupted for after entering while in-game --- CHANGELOG.md | 5 +++++ src/tts/gather-text.ts | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 50a70c7..2c01003 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,11 @@ # Change Log ## [Unreleased] + +### Fixes + +- Fix options menu getting interrupted for after entering while in-game + ## [0.5.0] 2024-01-06 ### Added diff --git a/src/tts/gather-text.ts b/src/tts/gather-text.ts index 2d5debb..0032441 100644 --- a/src/tts/gather-text.ts +++ b/src/tts/gather-text.ts @@ -105,6 +105,7 @@ export class TextGather { if (this.ignoreInteract > 0) { this.ignoreInteract-- } else if (Date.now() > this.ignoreInteractTo) { + console.trace() interruptCopy() } } @@ -288,8 +289,7 @@ export class TextGather { }, exitQuickMenu() { this.parent() - /* how is this called in the title screen???? dont know */ - if (sc.model.currentState == sc.GAME_MODEL_STATE.GAME) { + if (/* how is this called in the title screen???? dont know */ sc.model.currentState == sc.GAME_MODEL_STATE.GAME && /* why */ !ig.game.paused) { self.interrupt() } },