diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-06 18:59:37 +0000 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2022-03-06 18:59:37 +0000 |
commit | 9837c1f79a01fa200f0991ebf3c05e5954199d3e (patch) | |
tree | c9cd703f8df042cf793f97ef8ff97df6fe8c351d /NorthstarDedicatedTest | |
parent | 6a9fae96aeab36a9a9a32af7cd8d6b0c700d2f2b (diff) | |
download | NorthstarLauncher-9837c1f79a01fa200f0991ebf3c05e5954199d3e.tar.gz NorthstarLauncher-9837c1f79a01fa200f0991ebf3c05e5954199d3e.zip |
don't kick local player for netchan limits
Diffstat (limited to 'NorthstarDedicatedTest')
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp index 8bbca125..44ee97f3 100644 --- a/NorthstarDedicatedTest/serverauthentication.cpp +++ b/NorthstarDedicatedTest/serverauthentication.cpp @@ -460,8 +460,8 @@ char __fastcall CNetChan___ProcessMessagesHook(void* self, void* buf) g_ServerAuthenticationManager->m_additionalPlayerData[sender].netChanProcessingLimitTime, Cvar_net_chan_limit_msec_per_sec->GetInt()); - // nonzero = kick, 0 = warn - if (Cvar_net_chan_limit_mode->GetInt()) + // nonzero = kick, 0 = warn, but never kick local player + if (Cvar_net_chan_limit_mode->GetInt() && strcmp(g_LocalPlayerUserID, (char*)sender + 0xF500)) { CBaseClient__Disconnect(sender, 1, "Exceeded net channel processing limit"); return false; |