Skip to content

Commit

Permalink
MKW: Remove engine class patch
Browse files Browse the repository at this point in the history
  • Loading branch information
mkwcat committed Jan 5, 2025
1 parent a71c628 commit 3da4420
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 23 deletions.
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*.sh

!make.sh
dist/

# Editor files
.vscode
Expand All @@ -31,6 +32,11 @@
*.a
*.lib

# OS generated files
.DS_Store
ehthumbs.db
Thumbs.db

# Output
stage1/build
patch/build
Expand All @@ -45,4 +51,3 @@ launcher/build
*.dol
*.wad
*.app
dist/
22 changes: 0 additions & 22 deletions payload/wwfcFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,28 +277,6 @@ WWFC_DEFINE_PATCH = {
),
};

// Remove the 100cc engine class from vanilla matches
WWFC_DEFINE_PATCH = {
Patch::CallWithCTR( //
WWFC_PATCH_LEVEL_PARITY, //
RMCXD_PORT(0x806613F8, 0x806594BC, 0x80660A64, 0x8064F710), //
// clang-format off
[](mkw::Util::Random* random) -> void {
using namespace mkw::Net;

SelectHandler* selectHandler = SelectHandler::Instance();
if (NetController::Instance()->inVanillaMatch()) {
selectHandler->decideEngineClassNo100cc(random);
} else {
selectHandler->decideEngineClass();
}

random->dt(random, -1);
}
// clang-format on
),
};

// Report information about the upcoming match to the server
WWFC_DEFINE_PATCH = {
Patch::CallWithCTR( //
Expand Down

0 comments on commit 3da4420

Please sign in to comment.