From 1a00cbdcf92f7674d4f30f989fe918b45ce22301 Mon Sep 17 00:00:00 2001 From: Fox McCloud Date: Wed, 2 May 2018 00:14:32 -0400 Subject: [PATCH] Actually Fixes Chem Smoke --- .../chemistry/recipes/pyrotechnics.dm | 25 +++++++++---------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm index 74a9b740c62..c7acc705150 100644 --- a/code/modules/reagents/chemistry/recipes/pyrotechnics.dm +++ b/code/modules/reagents/chemistry/recipes/pyrotechnics.dm @@ -214,19 +214,18 @@ datum/chemical_reaction/flash_powder var/datum/effect_system/smoke_spread/chem/S = new S.attach(location) playsound(location, 'sound/effects/smoke.ogg', 50, 1, -3) - spawn(0) - if(S) - S.set_up(holder, 10, 0, location) - if(created_volume < 5) - S.start(1) - if(created_volume >=5 && created_volume < 10) - S.start(2) - if(created_volume >= 10 && created_volume < 15) - S.start(3) - if(created_volume >=15) - S.start(4) - if(holder && holder.my_atom) - holder.clear_reagents() + if(S) + S.set_up(holder, 10, 0, location) + if(created_volume < 5) + S.start(1) + if(created_volume >=5 && created_volume < 10) + S.start(2) + if(created_volume >= 10 && created_volume < 15) + S.start(3) + if(created_volume >=15) + S.start(4) + if(holder && holder.my_atom) + holder.clear_reagents() /datum/chemical_reaction/smoke/smoke_powder name = "smoke_powder_smoke"