Clean up sync world running GoalManager creation

This commit is contained in:
Matt Lott 2014-09-30 10:15:33 -07:00
parent 8f85e37713
commit 405c21cba4

View file

@ -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()