removes all var/ in procs (#12738)

This commit is contained in:
Kashargul
2026-05-05 10:55:04 +02:00
committed by GitHub
parent cc15f62485
commit d75f90466d
2159 changed files with 8035 additions and 8037 deletions
+5 -5
View File
@@ -12,24 +12,24 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/map_data)
return INITIALIZE_HINT_QDEL
// The storage of connections between adjacent levels means some bitwise magic is needed.
/proc/HasAbove(var/z)
/proc/HasAbove(z)
if(z >= world.maxz || z < 1 || z > length(GLOB.z_levels))
return 0
return GLOB.z_levels[z]
/proc/HasBelow(var/z)
/proc/HasBelow(z)
if(z > world.maxz || z < 2 || (z-1) > length(GLOB.z_levels))
return 0
return GLOB.z_levels[z-1]
// Thankfully, no bitwise magic is needed here.
/proc/GetAbove(var/atom/atom)
/proc/GetAbove(atom/atom)
var/turf/turf = get_turf(atom)
if(!turf)
return null
return HasAbove(turf.z) ? get_step(turf, UP) : null
/proc/GetBelow(var/atom/atom)
/proc/GetBelow(atom/atom)
var/turf/turf = get_turf(atom)
if(!turf)
return null
@@ -42,7 +42,7 @@ INITIALIZE_IMMEDIATE(/obj/effect/landmark/map_data)
for(var/level = z, HasAbove(level), level++)
. |= level+1
/proc/AreConnectedZLevels(var/zA, var/zB)
/proc/AreConnectedZLevels(zA, zB)
return zA == zB || (zB in GetConnectedZlevels(zA))
/proc/get_zstep(ref, dir)