diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-11-06 02:11:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-06 02:11:40 +0100 |
commit | 44be87347b604e65a7015bdd81664b4b33534353 (patch) | |
tree | a8f2eae08f28d69c9821fb4083cdeb50a7bf6f3a /NorthstarDLL | |
parent | a0455d177a27f47f167ec0f5db487479969ae46d (diff) | |
download | NorthstarLauncher-44be87347b604e65a7015bdd81664b4b33534353.tar.gz NorthstarLauncher-44be87347b604e65a7015bdd81664b4b33534353.zip |
Fix player count in server presence (#322)
Diffstat (limited to 'NorthstarDLL')
-rw-r--r-- | NorthstarDLL/serverauthentication.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp index bb4eb2e3..f2068cd4 100644 --- a/NorthstarDLL/serverauthentication.cpp +++ b/NorthstarDLL/serverauthentication.cpp @@ -398,8 +398,11 @@ void,, (R2::CBaseClient* self, uint32_t unknownButAlways1, const char* pReason, g_pServerAuthentication->RemovePlayerAuthData(self); // won't do anything 99% of the time, but just in case } - g_pServerAuthentication->RemovePlayer(self); - g_pServerLimits->RemovePlayer(self); + if (g_pServerAuthentication->m_RemoteAuthenticationData.count(self->m_Name)) + { + g_pServerAuthentication->RemovePlayer(self); + g_pServerLimits->RemovePlayer(self); + } g_pServerPresence->SetPlayerCount(g_pServerAuthentication->m_PlayerAuthenticationData.size()); |