From c80efcc0f0bba09ce6f38512459f49dee7439ea8 Mon Sep 17 00:00:00 2001 From: JJRcop Date: Wed, 11 Dec 2013 10:50:03 -0500 Subject: [PATCH] Adds breaks to some loops in case there is more than one pod. Shouldn't happen, but Murphy's law. --- code/game/objects/structures/transit_tubes.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/structures/transit_tubes.dm b/code/game/objects/structures/transit_tubes.dm index f20a7cb73ca..22f20194900 100644 --- a/code/game/objects/structures/transit_tubes.dm +++ b/code/game/objects/structures/transit_tubes.dm @@ -130,8 +130,10 @@ obj/structure/ex_act(severity) if(ismob(AM)) var/mob/M = AM M.Weaken(5) + else close_animation() + break /obj/structure/transit_tube/station/attackby(obj/item/W, mob/user) @@ -145,6 +147,7 @@ obj/structure/ex_act(severity) GM.Weaken(5) src.Bumped(GM) del(G) + break /obj/structure/transit_tube/station/proc/open_animation() if(icon_state == "closed")