code/global.dm => code/_global_vars/ (#17244)

* 1

* Full conversion

* .

* .

---------

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
Selis
2025-04-21 11:55:25 +02:00
committed by GitHub
parent 5d21a53dfa
commit 28e969778c
448 changed files with 1339 additions and 1346 deletions
@@ -38,7 +38,7 @@
if(is_valid_setup())
return TRUE
for(var/obj/machinery/disperser/front/F in global.machines)
for(var/obj/machinery/disperser/front/F in GLOB.machines)
if(get_dist(src, F) >= link_range)
continue
var/backwards = turn(F.dir, 180)
+1 -1
View File
@@ -79,7 +79,7 @@
if(known)
plane = PLANE_LIGHTING_ABOVE
for(var/obj/machinery/computer/ship/helm/H in global.machines)
for(var/obj/machinery/computer/ship/helm/H in GLOB.machines)
H.get_known_sectors()
else
real_appearance = image(icon, src, icon_state)
@@ -22,7 +22,7 @@
/obj/machinery/computer/ship/sensors/proc/find_sensors()
if(!linked)
return
for(var/obj/machinery/shipsensors/S in global.machines)
for(var/obj/machinery/shipsensors/S in GLOB.machines)
if(linked.check_ownership(S))
sensors = S
break
+1 -1
View File
@@ -284,7 +284,7 @@
/obj/effect/overmap/visitable/ship/populate_sector_objects()
..()
for(var/obj/machinery/computer/ship/S in global.machines)
for(var/obj/machinery/computer/ship/S in GLOB.machines)
S.attempt_hook_up(src)
for(var/datum/ship_engine/E in ship_engines)
if(check_ownership(E.holder))
+1 -1
View File
@@ -27,7 +27,7 @@ GLOBAL_LIST_EMPTY(map_sectors)
/turf/unsimulated/map/edge/LateInitialize()
//This could be done by using the using_map.overmap_size much faster, HOWEVER, doing it programatically to 'find'
// the edges this way allows for 'sub overmaps' elsewhere and whatnot.
for(var/side in alldirs) //The order of this list is relevant: It should definitely break on finding a cardinal FIRST.
for(var/side in GLOB.alldirs) //The order of this list is relevant: It should definitely break on finding a GLOB.cardinal FIRST.
var/turf/T = get_step(src, side)
if(T?.type == /turf/unsimulated/map) //Not a wall, not something else, EXACTLY a flat map turf.
map_is_to_my = side