mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-27 06:23:41 -04:00
Fixed a bug where pressing escape would not properly end scripts in the session state.
This commit is contained in:
parent
9652f070c3
commit
ebfb329da7
1 changed files with 2 additions and 0 deletions
|
@ -320,6 +320,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
|
|||
if ((noteGroup.script?.skippable) is false) and not options.force
|
||||
@noteGroupQueue = @noteGroupQueue[i..]
|
||||
@run()
|
||||
@notifyScriptStateChanged()
|
||||
return
|
||||
|
||||
@processNoteGroup(noteGroup)
|
||||
|
@ -331,6 +332,7 @@ module.exports = ScriptManager = class ScriptManager extends CocoClass
|
|||
@noteGroupQueue = []
|
||||
|
||||
@resetThings()
|
||||
@notifyScriptStateChanged()
|
||||
|
||||
onNoteGroupTimeout: (noteGroup) ->
|
||||
return unless noteGroup is @currentNoteGroup
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue