From e553447f65439cfd6d4396d310acded4b5dbcbfb Mon Sep 17 00:00:00 2001 From: Xhuis Date: Wed, 4 Nov 2015 21:26:47 -0500 Subject: [PATCH] More optimization --- code/controllers/subsystem/shuttles/emergency.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/controllers/subsystem/shuttles/emergency.dm b/code/controllers/subsystem/shuttles/emergency.dm index c0882a5796d..1e11ab4fbef 100644 --- a/code/controllers/subsystem/shuttles/emergency.dm +++ b/code/controllers/subsystem/shuttles/emergency.dm @@ -108,16 +108,16 @@ mode = SHUTTLE_STRANDED if(time_left <= 50 && !sound_played) //4 seconds left - should sync up with the launch sound_played = 1 - for(var/area/shuttle/escape/E in world) - for(var/mob/M in E) - M << 'sound/effects/hyperspace_begin.ogg' //Play the launch sound to all mobs on the shuttle + c if(time_left <= 0 && !SSshuttle.emergencyNoEscape) //move each escape pod to its corresponding transit dock for(var/obj/docking_port/mobile/pod/M in SSshuttle.mobile) if(M.z == ZLEVEL_STATION) //Will not launch from the mine/planet M.enterTransit() //now move the actual emergency shuttle to its transit dock - world << 'sound/effects/hyperspace_progress.ogg' + for(var/area/shuttle/escape/E in world) + for(var/mob/M in E) + E << 'sound/effects/hyperspace_progress.ogg' enterTransit() mode = SHUTTLE_ESCAPE timer = world.time