From c820e081531445bba51a5dfa8de9b8833af135de Mon Sep 17 00:00:00 2001 From: The Dax Date: Fri, 12 Jun 2026 03:36:40 -0400 Subject: [PATCH 1/2] Revert removal of SearchUIGrandCompanies::NONE special-casing It *needs* to be special-cased, or PacketAnalyzer will display an erroneous result! --- core/src/ipc/zone/search_info.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/core/src/ipc/zone/search_info.rs b/core/src/ipc/zone/search_info.rs index 5150576f..e70c2dd7 100644 --- a/core/src/ipc/zone/search_info.rs +++ b/core/src/ipc/zone/search_info.rs @@ -38,6 +38,11 @@ bitflags! { impl std::fmt::Debug for SearchUIGrandCompanies { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { + // Special-case NONE because it isn't all enabled at once, it's the *absence* of all at once. + if *self == SearchUIGrandCompanies::NONE { + return write!(f, "NONE"); + } + bitflags::parser::to_writer(self, f) } } From 80b776dc032e2e4284083cdacc2e67b5f1c51749 Mon Sep 17 00:00:00 2001 From: The Dax Date: Fri, 12 Jun 2026 03:44:49 -0400 Subject: [PATCH 2/2] Add comment clarifying why removing this is incorrect --- core/src/ipc/zone/search_info.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/ipc/zone/search_info.rs b/core/src/ipc/zone/search_info.rs index e70c2dd7..c9f02c56 100644 --- a/core/src/ipc/zone/search_info.rs +++ b/core/src/ipc/zone/search_info.rs @@ -38,7 +38,8 @@ bitflags! { impl std::fmt::Debug for SearchUIGrandCompanies { fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result { - // Special-case NONE because it isn't all enabled at once, it's the *absence* of all at once. + // Special-case NONE because it's 255 and indicates the *absence* of the flags! + // NOTE: before considering removal of this, please read the above comment! if *self == SearchUIGrandCompanies::NONE { return write!(f, "NONE"); }