[MIRROR] Makes medibeams more resilient to lag [MDB IGNORE] (#16293)

* Makes medibeams more resilient to lag (#69919)

* Makes medibeams more resilient to lag

Co-authored-by: ShizCalev <ShizCalev@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-17 22:26:57 -07:00
committed by GitHub
co-authored by ShizCalev
parent 65e42049f1
commit 25a6da87e9
2 changed files with 12 additions and 2 deletions
@@ -123,6 +123,13 @@
qdel(dummy)
return FALSE
for(var/obj/effect/ebeam/medical/B in next_step)// Don't cross the str-beams!
if(QDELETED(current_beam))
break //We shouldn't be processing anymore.
if(QDELETED(B))
continue
if(!B.owner)
stack_trace("beam without an owner! [B]")
continue
if(B.owner.origin != current_beam.origin)
explosion(B.loc, heavy_impact_range = 3, light_impact_range = 5, flash_range = 8, explosion_cause = src)
qdel(dummy)