mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 17:45:40 -05:00
Paths for non-admins. Making sure paths are showing when level first loads and playback ends (not sure why they are not showing up at first otherwise).
This commit is contained in:
parent
1d52562070
commit
ca73a049dd
1 changed files with 1 additions and 1 deletions
|
@ -342,6 +342,7 @@ module.exports = Surface = class Surface extends CocoClass
|
|||
@ended = true
|
||||
@setPaused true
|
||||
Backbone.Mediator.publish 'surface:playback-ended', {}
|
||||
@updatePaths() # TODO: this is a hack to make sure paths are on the first time the level loads
|
||||
else if @currentFrame < @world.totalFrames and @ended
|
||||
@ended = false
|
||||
@setPaused false
|
||||
|
@ -586,7 +587,6 @@ module.exports = Surface = class Surface extends CocoClass
|
|||
|
||||
updatePaths: ->
|
||||
return unless @options.paths and @heroLank
|
||||
return unless me.isAdmin() # TODO: Fix world thang points, targets, then remove this
|
||||
@hidePaths()
|
||||
return if @world.showPaths is 'never'
|
||||
layerAdapter = @lankBoss.layerAdapters['Path']
|
||||
|
|
Loading…
Reference in a new issue