Removes some unnecessary global variables (#16353)

Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
SabreML
2021-11-28 09:50:27 +01:00
committed by GitHub
co-authored by AffectedArc07
parent fa275ffe74
commit 5397d28c4f
31 changed files with 51 additions and 219 deletions
+3 -7
View File
@@ -143,10 +143,6 @@
D.register()
D.forceMove(locate(200, 200, zpos))
GLOBAL_LIST_INIT(atmos_machine_typecache, typecacheof(/obj/machinery/atmospherics))
GLOBAL_LIST_INIT(cable_typecache, typecacheof(/obj/structure/cable))
GLOBAL_LIST_INIT(maploader_typecache, typecacheof(/obj/effect/landmark/map_loader))
/datum/space_level/proc/resume_init()
if(dirt_count > 0)
throw EXCEPTION("Init told to resume when z-level still dirty. Z level: '[zpos]'")
@@ -156,9 +152,9 @@ GLOBAL_LIST_INIT(maploader_typecache, typecacheof(/obj/effect/landmark/map_loade
init_list = list()
var/watch = start_watch()
listclearnulls(our_atoms)
var/list/late_maps = typecache_filter_list(our_atoms, GLOB.maploader_typecache)
var/list/pipes = typecache_filter_list(our_atoms, GLOB.atmos_machine_typecache)
var/list/cables = typecache_filter_list(our_atoms, GLOB.cable_typecache)
var/list/late_maps = typecache_filter_list(our_atoms, typecacheof(/obj/effect/landmark/map_loader))
var/list/pipes = typecache_filter_list(our_atoms, typecacheof(/obj/machinery/atmospherics))
var/list/cables = typecache_filter_list(our_atoms, typecacheof(/obj/structure/cable))
// If we don't carefully add dirt around the map templates, bad stuff happens
// so we separate them out here
our_atoms -= late_maps