From 3515402ccc6a4c694dc31cb6327e39a3fb9a9d09 Mon Sep 17 00:00:00 2001 From: momo5502 Date: Sat, 16 Apr 2016 12:29:06 +0200 Subject: [PATCH] Optimize maxclients patch --- deps/protobuf | 2 +- src/Components/Modules/Party.cpp | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/deps/protobuf b/deps/protobuf index 814685ca..ca9bbd71 160000 --- a/deps/protobuf +++ b/deps/protobuf @@ -1 +1 @@ -Subproject commit 814685ca2cd9280ca401e1842fd6311440921a0a +Subproject commit ca9bbd71d547a05604e8c2bddda66cdba5abe0c4 diff --git a/src/Components/Modules/Party.cpp b/src/Components/Modules/Party.cpp index 512b3d10..4281be86 100644 --- a/src/Components/Modules/Party.cpp +++ b/src/Components/Modules/Party.cpp @@ -231,17 +231,17 @@ namespace Components { Dvar::Register("sv_maxclients", 18, 1, 18, Game::dvar_flag::DVAR_FLAG_SAVED, "The maximum number of clients that can connect to a server"); //Dvar::Register("party_maxplayers", 18, 0, 18, Game::dvar_flag::DVAR_FLAG_NONE, "Use sv_maxclients to adjust players!"); - Dvar::Register("ui_maxclients", 18, 0, 18, Game::dvar_flag::DVAR_FLAG_NONE, "Use sv_maxclients to adjust players!"); + //Dvar::Register("ui_maxclients", 18, 0, 18, Game::dvar_flag::DVAR_FLAG_NONE, "Use sv_maxclients to adjust players!"); }); // Synchronize maxplayers dvars - QuickPatch::OnFrame([] () + /*QuickPatch::OnFrame([] () { if (!Dvar::Var("party_enable").Get()) { Dvar::Var("ui_maxclients").SetRaw(Dvar::Var("sv_maxclients").Get()); } - }); + });*/ Command::Add("connect", [] (Command::Params params) {