tramprocess only fires on maps with trams (#58940)

This commit is contained in:
tralezab
2021-05-08 16:16:09 -07:00
committed by GitHub
parent bc621dd78c
commit 16c87a0aad
2 changed files with 6 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
PROCESSING_SUBSYSTEM_DEF(tramprocess)
name = "Tram Process"
wait = 1
/// only used on maps with trams, so only enabled by such.
can_fire = FALSE

View File

@@ -415,6 +415,10 @@ GLOBAL_LIST_EMPTY(lifts)
/obj/structure/industrial_lift/tram/central//that's a surprise tool that can help us later
/obj/structure/industrial_lift/tram/central/Initialize(mapload)
. = ..()
SStramprocess.can_fire = TRUE
/obj/structure/industrial_lift/tram/LateInitialize()
. = ..()
find_our_location()