From ca73a049dd0ec7f704ddc00f217e48994b130beb Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Fri, 21 Nov 2014 13:08:40 -0800 Subject: [PATCH] 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). --- app/lib/surface/Surface.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/surface/Surface.coffee b/app/lib/surface/Surface.coffee index 016fc81d6..195dab4b2 100644 --- a/app/lib/surface/Surface.coffee +++ b/app/lib/surface/Surface.coffee @@ -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']