From 00f12799427582a2570fdade888846a1d3a88907 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Tue, 31 May 2022 19:47:01 +0200 Subject: [PATCH] Fix red dots --- src/client/component/patches.cpp | 3 --- src/client/component/ranked.cpp | 4 ++-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/client/component/patches.cpp b/src/client/component/patches.cpp index 276841bf..ff2961c3 100644 --- a/src/client/component/patches.cpp +++ b/src/client/component/patches.cpp @@ -227,9 +227,6 @@ namespace patches // disable codPointStore dvars::override::register_int("codPointStore_enabled", 0, 0, 0, game::DVAR_FLAG_NONE); - // don't register every replicated dvar as a network dvar - utils::hook::nop(0x47408E_b, 5); // dvar_foreach - // patch "Server is different version" to show the server client version utils::hook::inject(0x54DCE5_b, VERSION); diff --git a/src/client/component/ranked.cpp b/src/client/component/ranked.cpp index 955a1984..55ed0fee 100644 --- a/src/client/component/ranked.cpp +++ b/src/client/component/ranked.cpp @@ -24,12 +24,12 @@ namespace ranked if (game::environment::is_mp()) { - dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED); + dvars::override::register_bool("xblive_privatematch", false, 0); } if (game::environment::is_dedi()) { - dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED | game::DVAR_FLAG_WRITE); + dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_WRITE); dvars::register_bool("force_ranking", true, game::DVAR_FLAG_WRITE, ""); // Skip some check in _menus.gsc }