[MIRROR] fixes qdeling atoms being thrown by explosions [MDB IGNORE] (#15979)

* fixes qdeling atoms being thrown by explosions (#69604)

fixes the Qdeleted thing being thrown around. runtimes spamming the shit out of the logs

* fixes qdeling atoms being thrown by explosions

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-02 00:03:08 +02:00
committed by GitHub
parent 34050ff06a
commit d9ba002500

View File

@@ -752,6 +752,8 @@ SUBSYSTEM_DEF(explosions)
var/throw_dir = L[2]
var/max_range = L[3]
for(var/atom/movable/A in T)
if(QDELETED(A))
continue
if(!A.anchored && A.move_resist != INFINITY)
var/atom_throw_range = rand(throw_range, max_range)
var/turf/throw_at = get_ranged_target_turf(A, throw_dir, atom_throw_range)