mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-30 16:48:12 +01:00
removes all var/ in procs (#12738)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user