mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Removes some unnecessary global variables (#16353)
Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user