More optimization

This commit is contained in:
Xhuis
2015-11-04 21:26:47 -05:00
parent 2199d7c4d1
commit e553447f65
@@ -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