Skip to content

Revert removal of SearchUIGrandCompanies::NONE special-casing#439

Merged
redstrate merged 2 commits into
redstrate:masterfrom
thedax:revert_bitflag_change
Jun 12, 2026
Merged

Revert removal of SearchUIGrandCompanies::NONE special-casing#439
redstrate merged 2 commits into
redstrate:masterfrom
thedax:revert_bitflag_change

Conversation

@thedax

@thedax thedax commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

It needs to be special-cased because NONE in this enum/packet is 255, not 0, or PacketAnalyzer will display an erroneous result!

It now incorrectly displays grand_company: MAELSTROM | ADDERS | FLAMES | NONE. When it's NONE, it should display grand_company: NONE. I'm aware bitflags isn't exactly equipped for that, which is why I special-cased it.

thedax added 2 commits June 12, 2026 03:36
It *needs* to be special-cased, or PacketAnalyzer will display an erroneous result!

@redstrate redstrate left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I still find the logic confusing but we at least shouldn't break it

@redstrate redstrate merged commit d28905a into redstrate:master Jun 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants