[MIRROR] Conversion many Globals to Managed Globals (Part 1) (#10665)

Co-authored-by: Selis <12716288+ItsSelis@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-04-17 16:06:35 -07:00
committed by GitHub
parent 06f0821bcf
commit f7219329ca
235 changed files with 1263 additions and 1255 deletions

View File

@@ -1,5 +1,5 @@
/proc/get_overmap_sector(var/z)
if(using_map.use_overmap)
return map_sectors["[z]"]
return GLOB.map_sectors["[z]"]
else
return null

View File

@@ -147,7 +147,7 @@
/obj/effect/overmap/visitable/proc/register_z_levels()
for(var/zlevel in map_z)
map_sectors["[zlevel]"] = src
GLOB.map_sectors["[zlevel]"] = src
global.using_map.player_levels |= map_z
if(!in_space)
@@ -160,7 +160,7 @@
*/
/obj/effect/overmap/visitable/proc/unregister_z_levels()
map_sectors -= map_z
GLOB.map_sectors -= map_z
global.using_map.player_levels -= map_z
if(!in_space)

View File

@@ -1,5 +1,5 @@
//Dimension of overmap (squares 4 lyfe)
var/global/list/map_sectors = list()
GLOBAL_LIST_EMPTY(map_sectors)
/area/overmap
name = "System Map"