mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[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:
committed by
GitHub
parent
06f0821bcf
commit
f7219329ca
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user