From e8537d489e1006004f197705fb581a246b79b64b Mon Sep 17 00:00:00 2001 From: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Date: Sat, 16 Sep 2023 23:14:32 -0700 Subject: [PATCH] Adds NONE to empty bitflags in VV (#78355) This has annoyed me forever. Let's do somethin about it. --- code/modules/admin/view_variables/debug_variables.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/admin/view_variables/debug_variables.dm b/code/modules/admin/view_variables/debug_variables.dm index 24ee0032a33..230a0e46284 100644 --- a/code/modules/admin/view_variables/debug_variables.dm +++ b/code/modules/admin/view_variables/debug_variables.dm @@ -90,7 +90,10 @@ for (var/i in GLOB.bitfields[name]) if (value & GLOB.bitfields[name][i]) flags += i + if(length(flags)) item = "[name_part] = [VV_HTML_ENCODE(jointext(flags, ", "))]" + else + item = "[name_part] = NONE" else item = "[name_part] = [VV_HTML_ENCODE(value)]"