Fix #3701: load data properly for simulation again.

This commit is contained in:
Nick Winter 2016-06-09 16:48:18 -07:00
parent 55bd49fde0
commit bd14e49707
2 changed files with 2 additions and 2 deletions

View file

@ -123,7 +123,7 @@ module.exports = class LevelLoader extends CocoClass
url += "?course=#{@courseID}" if @courseID
session = new LevelSession().setURL url
session.project = ['creator', 'team', 'heroConfig', 'codeLanguage', 'submittedCodeLanguage', 'state'] if @headless
session.project = ['creator', 'team', 'heroConfig', 'codeLanguage', 'submittedCodeLanguage', 'state', 'submittedCode'] if @headless
@sessionResource = @supermodel.loadModel(session, 'level_session', {cache: false})
@session = @sessionResource.model
if @opponentSessionID

View file

@ -146,7 +146,7 @@ module.exports = class Level extends CocoModel
levelThang.components.push placeholderComponent
# Load the user's chosen hero AFTER getting stats from default char
if /Hero Placeholder/.test(levelThang.id) and @get('type', true) in ['course', 'course-ladder']
if /Hero Placeholder/.test(levelThang.id) and @get('type', true) in ['course']
heroThangType = me.get('heroConfig')?.thangType
levelThang.thangType = heroThangType if heroThangType