Merge pull request #14112 from silicons/ex_act_3

~~hugboxes~~ fixes the bug (that was probably my fault) that makes 1 dev explosions ALWAYS delete brain
This commit is contained in:
Lin
2021-01-27 17:16:44 -06:00
committed by GitHub
5 changed files with 24 additions and 14 deletions
+7 -2
View File
@@ -239,8 +239,13 @@ GLOBAL_LIST_EMPTY(explosions)
atoms += A
for(var/i in atoms)
var/atom/A = i
if(!QDELETED(A))
A.ex_act(dist)
if(QDELETED(A))
continue
A.ex_act(dist, null, src)
if(QDELETED(A) || !ismovable(A))
continue
var/atom/movable/AM = A
LAZYADD(AM.acted_explosions, explosion_id)
if(flame_dist && prob(40) && !isspaceturf(T) && !T.density)
new /obj/effect/hotspot(T) //Mostly for ambience!