Skip to content

Umoria 5.7.3

Compare
Choose a tag to compare
@mrcook mrcook released this 21 Jun 22:04
· 1473 commits to master since this release

The main focus of this release was to refactor the source code, applying the Extract Method refactoring pattern, along with fixing a couple of small bugs.

I've also added to the documentation with a better contributing guide, as well a proper Code of Conduct.

Bug Fixes

  • Various repeat commands (e.g tunnelling) were broken in the 5.7.1 release.
  • Remove curs_set(0) as a visible cursor is needed in menus!

Code

  • Extract Method refactoring.
  • Refactor if/else statements:
    • Add guard clauses / early returns where possible.
    • Remove else when an if returns.
    • Makes many easier to understand (e.g. less indentation).
  • Refactor do/while statements, to be just while statements where possible.
  • Remove unneeded braces for if statement expressions.
  • Rename many variables to make their function more obvious (still lots more to do in this area).
  • Lots of general small refactoring.