From 97043c4a25e54f5c7cd8786c269969422e53c3d7 Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Mon, 30 Nov 2015 14:01:39 -0800 Subject: [PATCH] Autoplay when observing others' replays --- app/views/play/level/PlayLevelView.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/play/level/PlayLevelView.coffee b/app/views/play/level/PlayLevelView.coffee index cc3654ecc..23e0b0068 100644 --- a/app/views/play/level/PlayLevelView.coffee +++ b/app/views/play/level/PlayLevelView.coffee @@ -357,7 +357,9 @@ module.exports = class PlayLevelView extends RootView @selectHero() onLoadingViewUnveiled: (e) -> - Backbone.Mediator.publish 'level:set-playing', playing: true if @level.get('type') in ['course-ladder', 'hero-ladder'] # We used to autoplay by default, but now we only do it if the level says to in the introduction script. + if @level.get('type') in ['course-ladder', 'hero-ladder'] or @observing + # We used to autoplay by default, but now we only do it if the level says to in the introduction script. + Backbone.Mediator.publish 'level:set-playing', playing: true @loadingView.$el.remove() @removeSubView @loadingView @loadingView = null