[MIRROR] Gets rid of a couple of single-letter variables [MDB IGNORE] (#24370)

* Gets rid of a couple of single-letter variables

* Fix diffs

---------

Co-authored-by: GoldenAlpharex <58045821+GoldenAlpharex@users.noreply.github.com>
Co-authored-by: Giz <13398309+vinylspiders@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-10-16 10:21:41 -07:00
committed by GitHub
co-authored by GoldenAlpharex Giz
parent 15f42333fb
commit 0875293b01
5 changed files with 102 additions and 103 deletions
+9 -9
View File
@@ -80,19 +80,19 @@
#define ADMIN_SEE_ZLEVEL_LAYOUT "(<A href='?_src_=holder;[HrefToken(forceGlobal = TRUE)];debug_z_levels=1'>SEE Z-LEVEL LAYOUT</a>)"
/atom/proc/Admin_Coordinates_Readable(area_name, admin_jump_ref)
var/turf/T = Safe_COORD_Location()
return T ? "[area_name ? "[get_area_name(T, TRUE)] " : " "]([T.x],[T.y],[T.z])[admin_jump_ref ? " [ADMIN_JMP(T)]" : ""]" : "nonexistent location"
var/turf/turf_at_coords = Safe_COORD_Location()
return turf_at_coords ? "[area_name ? "[get_area_name(turf_at_coords, TRUE)] " : " "]([turf_at_coords.x],[turf_at_coords.y],[turf_at_coords.z])[admin_jump_ref ? " [ADMIN_JMP(turf_at_coords)]" : ""]" : "nonexistent location"
/atom/proc/Safe_COORD_Location()
var/atom/A = drop_location()
if(!A)
var/atom/drop_atom = drop_location()
if(!drop_atom)
return //not a valid atom.
var/turf/T = get_step(A, 0) //resolve where the thing is.
if(!T) //incase it's inside a valid drop container, inside another container. ie if a mech picked up a closet and has it inside it's internal storage.
var/atom/last_try = A.loc?.drop_location() //one last try, otherwise fuck it.
var/turf/drop_turf = get_step(drop_atom, 0) //resolve where the thing is.
if(!drop_turf) //incase it's inside a valid drop container, inside another container. ie if a mech picked up a closet and has it inside it's internal storage.
var/atom/last_try = drop_atom.loc?.drop_location() //one last try, otherwise fuck it.
if(last_try)
T = get_step(last_try, 0)
return T
drop_turf = get_step(last_try, 0)
return drop_turf
/turf/Safe_COORD_Location()
return src