fix: suppress videoEnd during QTE, clear QTE UI on game end and chapter restart

This commit is contained in:
2026-06-09 14:55:13 +08:00
parent 660fa9347c
commit 0a6d26ecb0
3 changed files with 11 additions and 2 deletions

View File

@@ -73,6 +73,7 @@ export function useGameEngine(videoEls: () => [HTMLVideoElement | null, HTMLVide
})
engine.on('gameEnd', () => {
store.clearQTE()
store.setGameEnded(true)
engine.choiceSystem.stop()
})