mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-24 08:08:15 -05:00
Fixed a bug with the simulator due to the changes made to the supermodel.
This commit is contained in:
parent
0be813e424
commit
09fbfdb360
2 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,7 @@ module.exports = class Simulator extends CocoClass
|
|||
return
|
||||
|
||||
@supermodel ?= new SuperModel()
|
||||
|
||||
@supermodel.resetProgress()
|
||||
@levelLoader = new LevelLoader supermodel: @supermodel, levelID: levelID, sessionID: @task.getFirstSessionID(), headless: true
|
||||
if @supermodel.finished()
|
||||
@simulateGame()
|
||||
|
|
|
@ -162,6 +162,7 @@ module.exports = class SuperModel extends Backbone.Model
|
|||
@trigger('loaded-all') if @finished()
|
||||
|
||||
setMaxProgress: (@maxProgress) ->
|
||||
resetProgress: -> @progress = 0
|
||||
clearMaxProgress: ->
|
||||
@maxProgress = 1
|
||||
_.defer @updateProgress
|
||||
|
|
Loading…
Reference in a new issue