From 2f220eb007a8c8cd91c6c03ae3819fc8b77e7f4f Mon Sep 17 00:00:00 2001 From: Nick Winter Date: Thu, 18 Aug 2016 14:39:14 -0700 Subject: [PATCH] Fix #3843 --- app/core/ParticleMan.coffee | 1 - app/views/play/CampaignView.coffee | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/core/ParticleMan.coffee b/app/core/ParticleMan.coffee index 41be7829c..797e2d4ac 100644 --- a/app/core/ParticleMan.coffee +++ b/app/core/ParticleMan.coffee @@ -84,7 +84,6 @@ module.exports = ParticleMan = class ParticleMan extends CocoClass addEmitter: (x, y, kind="level-dungeon-premium") -> return if @unsupported - kind = kind.replace 'intro', 'dungeon' options = $.extend true, {}, particleKinds[kind] return console.error "Couldn't find particle configuration for", kind unless options.group options.group.texture = THREE.ImageUtils.loadTexture "/images/common/particles/#{options.group.texture}.png" diff --git a/app/views/play/CampaignView.coffee b/app/views/play/CampaignView.coffee index a551e2b22..031005a0d 100644 --- a/app/views/play/CampaignView.coffee +++ b/app/views/play/CampaignView.coffee @@ -404,7 +404,7 @@ module.exports = class CampaignView extends RootView @particleMan.removeEmitters() @particleMan.attach @$el.find('.map') for level in @campaign.renderedLevels ? {} - terrain = @terrain.replace('-branching-test', '').replace(/(game|web)-dev-\d/, 'forest') + terrain = @terrain.replace('-branching-test', '').replace(/(campaign-)?(game|web)-dev-\d/, 'forest').replace('intro', 'dungeon') particleKey = ['level', terrain] particleKey.push level.type if level.type and not (level.type in ['hero', 'course']) # Would use isType, but it's not a Level model particleKey.push 'replayable' if level.replayable