[MIRROR] SStramprocess only fires on maps with trams actually present on the map (#5565)

* tramprocess only fires on maps with trams (#58940)

* SStramprocess only fires on maps with trams actually present on the map

Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-05-09 00:24:28 +01:00
committed by GitHub
co-authored by tralezab
parent ec8e9d83b4
commit fcb1301f64
2 changed files with 6 additions and 0 deletions
@@ -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
@@ -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()