[MIRROR] code/global.dm => code/_global_vars/ (#10689)

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-21 10:16:48 -07:00
committed by GitHub
parent a7718c6177
commit f04f992cfe
474 changed files with 1401 additions and 1421 deletions

View File

@@ -62,7 +62,7 @@
GENERATE_MISSING_CORNERS(holder) //Somehow corners are self destructing under specific circumstances. Likely race conditions. This is slightly unoptimal but may be necessary.
sunlight_check() //Also not optimal but made necessary by race conditions
sunlight_update()
for(var/dir in (cardinal + cornerdirs))
for(var/dir in (GLOB.cardinal + GLOB.cornerdirs))
var/turf/simulated/T = get_step(holder, dir)
if(istype(T) && T.shandler)
T.shandler.sunlight_update()
@@ -168,7 +168,7 @@
if(try_get_sun() && !holder.is_outdoors() && !holder.density)
var/outside_near = FALSE
outer_loop:
for(var/dir in cardinal)
for(var/dir in GLOB.cardinal)
var/steps = 1
var/turf/cur_turf = get_step(holder,dir)
while(cur_turf && !cur_turf.density && steps < (SUNLIGHT_RADIUS + 1))
@@ -177,10 +177,10 @@
break outer_loop
steps += 1
cur_turf = get_step(cur_turf,dir)
if(!outside_near) //If cardinal directions fail, then check diagonals.
if(!outside_near) //If GLOB.cardinal directions fail, then check diagonals.
var/radius = ONE_OVER_SQRT_2 * SUNLIGHT_RADIUS + 1
outer_loop:
for(var/dir in cornerdirs)
for(var/dir in GLOB.cornerdirs)
var/steps = 1
var/turf/cur_turf = get_step(holder,dir)
var/opp_dir = turn(dir,180)