Prevents shuttle events running in-case of catastrophic failure (#77479)

Closes #77433

When the rare "shuttle doesn't leave" bug happens, shuttle events can
still run at the shuttles location. I have no idea why the shuttle
sometimes doesn't leave, but this at least fixes shuttle events running
when it doesnt

Also adds some logging to hopefully find out why this happens 

/🆑
fix: Fixes shuttle events running when the shuttle breaks
/🆑
This commit is contained in:
Time-Green
2023-08-10 20:51:22 -06:00
committed by GitHub
parent 4776c66015
commit b3831e5fa6
+5 -2
View File
@@ -522,12 +522,15 @@
setTimer(SSshuttle.emergency_escape_time * engine_coeff)
priority_announce("The Emergency Shuttle has left the station. Estimate [timeLeft(600)] minutes until the shuttle docks at Central Command.", null, null, "Priority")
INVOKE_ASYNC(SSticker, TYPE_PROC_REF(/datum/controller/subsystem/ticker, poll_hearts))
SSmapping.mapvote() //If no map vote has been run yet, start one.
if(!is_reserved_level(z))
CRASH("Emergency shuttle did not move to transit z-level!")
//Tell the events we're starting, so they can time their spawns or do some other stuff
for(var/datum/shuttle_event/event as anything in event_list)
event.start_up_event(SSshuttle.emergency_escape_time * engine_coeff)
SSmapping.mapvote() //If no map vote has been run yet, start one.
if(SHUTTLE_STRANDED, SHUTTLE_DISABLED)
SSshuttle.checkHostileEnvironment()