Skip to content

Conversation

@bobtista
Copy link

Refactored:

  • Recorder::readArgument(): 11-deep enum dispatch for argument types
  • UDP::GetStatus(): Windows (11-deep) and Unix (12-deep) error code mapping
  • NAT::allConnectionsDone(): 7-deep player count logic

@xezon xezon added Refactor Edits the code with insignificant behavior changes, is never user facing Approved Pull Request was approved labels Nov 7, 2025
Use bitwise AND to detect odd/even numbers and calculate required rounds
more concisely.

Addresses xezon's review comment on PR TheSuperHackers#1683
Properly align break statements and closing braces to match case block
indentation.

Addresses xezon's review comment on PR TheSuperHackers#1683
@bobtista bobtista force-pushed the bobtista/switch-refactor-2 branch from 367b3cd to c61b32e Compare November 8, 2025 12:23
@xezon xezon changed the title refactor: convert more if-else chains to switch statements refactor: Simplify some if-else condition chains Nov 8, 2025
@xezon xezon merged commit e404977 into TheSuperHackers:main Nov 8, 2025
18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Approved Pull Request was approved Refactor Edits the code with insignificant behavior changes, is never user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants