mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-14 00:26:02 +01:00
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:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user