Merge pull request #4362 from Citadel-Station-13/upstream-merge-33495

[MIRROR] Fixes do-sparks runtimes.
This commit is contained in:
deathride58
2017-12-14 03:53:16 +00:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
@@ -26,6 +26,7 @@ would spawn and follow the beaker, even if it is carried or thrown.
var/atom/holder
var/effect_type
var/total_effects = 0
var/autocleanup = FALSE //will delete itself after use
/datum/effect_system/Destroy()
holder = null
@@ -69,3 +70,5 @@ would spawn and follow the beaker, even if it is carried or thrown.
/datum/effect_system/proc/decrement_total_effect()
total_effects--
if(autocleanup && total_effects <= 0)
qdel(src)
@@ -12,8 +12,8 @@
var/datum/effect_system/spark_spread/sparks = new
sparks.set_up(n, c, source)
sparks.autocleanup = TRUE
sparks.start()
qdel(sparks)
/obj/effect/particle_effect/sparks