From c32e6c4e9c8e225e949c0ff852f38964dc89884f Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Tue, 21 Jun 2022 21:20:55 +0300 Subject: [PATCH] allow unranked servers --- src/client/component/ranked.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/ranked.cpp b/src/client/component/ranked.cpp index 955a1984..eec51c1f 100644 --- a/src/client/component/ranked.cpp +++ b/src/client/component/ranked.cpp @@ -27,7 +27,7 @@ namespace ranked dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED); } - if (game::environment::is_dedi()) + if (game::environment::is_dedi() && !utils::flags::has_flag("unranked")) { dvars::override::register_bool("xblive_privatematch", false, game::DVAR_FLAG_REPLICATED | game::DVAR_FLAG_WRITE); dvars::register_bool("force_ranking", true, game::DVAR_FLAG_WRITE, ""); // Skip some check in _menus.gsc