Skip to content

Commit

Permalink
Fix options menu getting interrupted for after entering while in-game
Browse files Browse the repository at this point in the history
  • Loading branch information
krypciak committed Jan 6, 2024
1 parent 5fb8107 commit fc0ce1a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/tts/gather-text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ export class TextGather {
if (this.ignoreInteract > 0) {
this.ignoreInteract--
} else if (Date.now() > this.ignoreInteractTo) {
console.trace()
interruptCopy()
}
}
Expand Down Expand Up @@ -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()
}
},
Expand Down

0 comments on commit fc0ce1a

Please sign in to comment.