aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/serverauthentication.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-06 18:59:37 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-06 18:59:37 +0000
commit9837c1f79a01fa200f0991ebf3c05e5954199d3e (patch)
treec9cd703f8df042cf793f97ef8ff97df6fe8c351d /NorthstarDedicatedTest/serverauthentication.cpp
parent6a9fae96aeab36a9a9a32af7cd8d6b0c700d2f2b (diff)
downloadNorthstarLauncher-9837c1f79a01fa200f0991ebf3c05e5954199d3e.tar.gz
NorthstarLauncher-9837c1f79a01fa200f0991ebf3c05e5954199d3e.zip
don't kick local player for netchan limits
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r--NorthstarDedicatedTest/serverauthentication.cpp4
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;