mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-28 01:55:38 -05:00
Fixed the LevelLoader in headless settings.
This commit is contained in:
parent
93c6f72f07
commit
3f884e71e5
1 changed files with 5 additions and 3 deletions
|
@ -171,10 +171,12 @@ module.exports = class LevelLoader extends CocoClass
|
|||
someLeft = true
|
||||
thangType = spriteSheetResource.thangType
|
||||
if thangType.loaded and not thangType.loading
|
||||
@listenTo spriteSheetResource.thangType, 'build-complete', @onBuildComplete
|
||||
keys = @buildSpriteSheetsForThangType spriteSheetResource.thangType
|
||||
if keys and keys.length
|
||||
@listenTo spriteSheetResource.thangType, 'build-complete', @onBuildComplete
|
||||
spriteSheetResource.spriteSheetKeys = keys
|
||||
spriteSheetResource.markLoaded() if keys.length is 0
|
||||
else
|
||||
spriteSheetResource.markLoaded()
|
||||
|
||||
clearInterval @buildLoopInterval unless someLeft
|
||||
|
||||
|
|
Loading…
Reference in a new issue