Fixes the gibber rarely not working (#24019)

This commit is contained in:
GDN
2024-02-05 21:54:21 -05:00
committed by GitHub
parent c66f31bd3d
commit ac48101fd8
@@ -201,7 +201,7 @@
var/list/gibber_viewers = list()
for(var/mob/viewer as anything in viewers(src))
gibber_viewers += viewer.client
for(var/client/viewer as anything in gibber_viewers)
for(var/client/viewer in gibber_viewers)
viewer.images += victim
flick_overlay(grinder_overlay, gibber_viewers, animation_delay * 2)
animate(victim, pixel_y = 16, time = animation_delay)
@@ -209,7 +209,7 @@
victim.icon += icon('icons/obj/kitchen.dmi', "footicon") //this is some byond magic; += to the icon var with a black and white image will mask it
animate(victim, pixel_y = -3, time = animation_delay) // Animate going down further
sleep(animation_delay)
for(var/client/viewer as anything in gibber_viewers)
for(var/client/viewer in gibber_viewers)
viewer.images -= victim
qdel(victim)
qdel(grinder_overlay)