mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-16 01:25:10 +01:00
Conversion many Globals to Managed Globals (Part 1) (#17121)
* Conversion of some Globals to Managed Globals * Fix * for later --------- Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -148,7 +148,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)
|
||||
@@ -161,7 +161,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