Stops explosions causing millions of runtimes (#14931)

This commit is contained in:
Farie82
2020-11-23 19:03:20 +00:00
committed by GitHub
parent 85c712b030
commit ec5f7dd8a5
+2 -2
View File
@@ -122,13 +122,13 @@
affecting_level = S.is_shielded() ? 2 : (S.intact ? 2 : 1)
for(var/atom in S.contents) //bypass type checking since only atom can be contained by turfs anyway
var/atom/AM = atom
if(AM && AM.simulated)
if(!QDELETED(AM) && AM.simulated)
if(AM.level >= affecting_level)
AM.ex_act(dist)
else
for(var/atom in T.contents) //see above
var/atom/AM = atom
if(AM && AM.simulated)
if(!QDELETED(AM) && AM.simulated)
AM.ex_act(dist)
CHECK_TICK
if(breach)