Reworked remove_ventcrawl() to be safer

This commit is contained in:
Remie Richards
2015-04-26 19:14:56 +01:00
parent 868ca0878a
commit 504a139364
+4 -5
View File
@@ -74,13 +74,12 @@ var/list/ventcrawl_machinery = list(/obj/machinery/atmospherics/unary/vent_pump,
/mob/living/proc/remove_ventcrawl()
for(var/image/current_image in pipes_shown)
client.images -= current_image
if(client)
for(var/image/current_image in pipes_shown)
client.images -= current_image
client.eye = src
pipes_shown.len = 0
if(client)
client.eye = src