mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-04-26 05:53:39 -04:00
Clean up sync world running GoalManager creation
This commit is contained in:
parent
8f85e37713
commit
405c21cba4
1 changed files with 1 additions and 4 deletions
|
@ -238,10 +238,7 @@ module.exports = class Angel extends CocoClass
|
|||
work.testWorld = testWorld = new World work.userCodeMap
|
||||
testWorld.loadFromLevel work.level
|
||||
if @shared.goalManager
|
||||
# TODO: Do we need to create testGM via @shared.goalManager.constructor for some scenario?
|
||||
# TODO: It breaks IE9, because @world is undefined in GoalManager.initThangTeams()
|
||||
# testGM = new @shared.goalManager.constructor @testWorld
|
||||
testGM = new GoalManager(work.testWorld)
|
||||
testGM = new GoalManager(testWorld)
|
||||
testGM.setGoals work.goals
|
||||
testGM.setCode work.userCodeMap
|
||||
testGM.worldGenerationWillBegin()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue