From ed93aa8020daa25dbd98a4357209a6f966202e1d Mon Sep 17 00:00:00 2001 From: Meghan-Rossi <56671765+Meghan-Rossi@users.noreply.github.com> Date: Fri, 1 Nov 2024 21:49:02 +0000 Subject: [PATCH] 515.1543 Compatibility Removes some unnecessary compile-time checks that caused compile errors in byond versions 515.1543 and higher. --- .../debug_variable_appearance.dm | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/code/modules/admin/view_variables/debug_variable_appearance.dm b/code/modules/admin/view_variables/debug_variable_appearance.dm index 3ceaf2a50b5b..8bc9979a7d10 100644 --- a/code/modules/admin/view_variables/debug_variable_appearance.dm +++ b/code/modules/admin/view_variables/debug_variable_appearance.dm @@ -59,25 +59,23 @@ GLOBAL_DATUM_INIT(pluto, /atom/movable, new /atom/movable(null)) if(beloved.vars.Find(var_name)) // If datums have it, get out return FALSE // If it is one of the two args on /image, yeet (I am sorry) - if(var_name == NAMEOF(src, realized_overlays)) + if(var_name == "realized_overlays") return FALSE - if(var_name == NAMEOF(src, realized_underlays)) + if(var_name == "realized_underlays") return FALSE // Filtering out the stuff I know we don't care about - if(var_name == NAMEOF(src, x)) + if(var_name == "x") return FALSE - if(var_name == NAMEOF(src, y)) + if(var_name == "y") return FALSE - if(var_name == NAMEOF(src, z)) + if(var_name == "z") return FALSE // Could make an argument for these but I think they will just confuse people, so yeeet -#ifndef SPACEMAN_DMM // Spaceman doesn't believe in contents on appearances, sorry lads - if(var_name == NAMEOF(src, contents)) + if(var_name == "contents") return FALSE -#endif - if(var_name == NAMEOF(src, loc)) + if(var_name == "loc") return FALSE - if(var_name == NAMEOF(src, vis_contents)) + if(var_name == "vis_contents") return FALSE return ..()