Fix PlayGameDevLevelView to run in course mode

This commit is contained in:
Scott Erickson 2016-07-14 16:49:48 -07:00
parent c0bc10ffb6
commit 9a79cae09d

View file

@ -32,8 +32,9 @@ module.exports = class PlayGameDevLevelView extends RootView
@level = new Level()
@session = new LevelSession()
@gameUIState = new GameUIState()
@courseID = @getQueryVariable 'course'
@god = new God({ @gameUIState })
@levelLoader = new LevelLoader({ @supermodel, @levelID, @sessionID, observing: true, team: TEAM })
@levelLoader = new LevelLoader({ @supermodel, @levelID, @sessionID, observing: true, team: TEAM, @courseID })
@listenTo @state, 'change', _.debounce(-> @renderSelectors('#info-col'))
@levelLoader.loadWorldNecessities()