Skip to content

Commit

Permalink
The nuke ops base begins lazy loading as soon as the first hijack sta…
Browse files Browse the repository at this point in the history
…ge is completed so as to avoid upwards of 30 second delays on the shuttle docking after the timer hits 00:00 due to server lag. (tgstation#72244)

## Why It's Good For The Game
Just got out of a manuel round where we were stuck on a shuttle at 00:00
for like 30 seconds because of the lazy loading being way, way too slow.

![dreamseeker_AZluZ0MgCq](https://user-images.githubusercontent.com/4081722/209479719-7be94786-e21a-45b9-81af-3b48f8906236.png)

Note that this doesn't fix the fact hijack greentexts don't work due to
the lazy loading being off the CC Z-level, by the way.

## Changelog

:cl:
fix: The nuke ops base begins lazy loading as soon as the first hijack
stage is completed so as to avoid upwards of 30 second delays on the
shuttle docking after the timer hits 00:00 due to server lag.
/:cl:

Co-authored-by: Mothblocks <[email protected]>
  • Loading branch information
Iamgoofball and Mothblocks authored Dec 29, 2022
1 parent 5d415a2 commit 719173d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/modules/shuttle/emergency.dm
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,8 @@

/obj/machinery/computer/emergency_shuttle/proc/increase_hijack_stage()
var/obj/docking_port/mobile/emergency/shuttle = SSshuttle.emergency
// Begin loading this early, otherwise we get an awkward 30 second delay on the
SSmapping.lazy_load_template(LAZY_TEMPLATE_KEY_NUKIEBASE)
shuttle.hijack_status++
if(hijack_announce)
announce_hijack_stage()
Expand Down Expand Up @@ -545,7 +547,6 @@
// unless the shuttle is "hijacked"
var/destination_dock = "emergency_away"
if(is_hijacked() || elimination_hijack())
SSmapping.lazy_load_template(LAZY_TEMPLATE_KEY_NUKIEBASE)
destination_dock = "emergency_syndicate"
minor_announce("Corruption detected in \
shuttle navigation protocols. Please contact your \
Expand Down

0 comments on commit 719173d

Please sign in to comment.