Skip to content

Commit

Permalink
(Possibly?) Fix the hard-del on particle weather stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
LikeLakers2 committed Feb 3, 2025
1 parent 0492d73 commit 8cc1ff4
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,14 +277,15 @@ GLOBAL_LIST_EMPTY(siren_objects)
switch(plane_type)
if("Default")
SSparticle_weather.particle_effect?.animate_severity(severity_mod())
//Wait for the last particle to fade, then qdel yourself
addtimer(CALLBACK(src, PROC_REF(end)), SSparticle_weather.particle_effect.lifespan + SSparticle_weather.particle_effect.fade)
if("Eclipse")
SSparticle_weather.particle_effect_eclipse?.animate_severity(severity_mod())
//Wait for the last particle to fade, then qdel yourself
addtimer(CALLBACK(src, PROC_REF(end)), SSparticle_weather.particle_effect_eclipse.lifespan + SSparticle_weather.particle_effect_eclipse.fade)
else
stack_trace("[src] had invalid plane_type [plane_type]")

//Wait for the last particle to fade, then qdel yourself
addtimer(CALLBACK(src, PROC_REF(end)), SSparticle_weather.particle_effect.lifespan + SSparticle_weather.particle_effect.fade)

/datum/particle_weather/proc/end()
running = FALSE
SSparticle_weather.stop_weather(plane_type)
Expand Down

0 comments on commit 8cc1ff4

Please sign in to comment.