diff options
author | Emma Miler <emma.pi@protonmail.com> | 2022-11-06 02:42:58 +0100 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-11-06 02:44:05 +0100 |
commit | e0da8b2b5a5b9d536b3e8e83a2d4d2ebecf02bff (patch) | |
tree | d362ace081dac4514c7af1843b62139897f7af34 /NorthstarDLL/serverauthentication.cpp | |
parent | 7fa570450e628cda3c01911d349459cedd060f67 (diff) | |
download | NorthstarLauncher-e0da8b2b5a5b9d536b3e8e83a2d4d2ebecf02bff.tar.gz NorthstarLauncher-e0da8b2b5a5b9d536b3e8e83a2d4d2ebecf02bff.zip |
Fix player count server presence (again) (#323)v1.10.9-rc1v1.10.9v1.10.8-rc3v1.10.8-rc2v1.10.8-rc1v1.10.8v1.10.7-rc1v1.10.7v1.10.6-rc1v1.10.6v1.10.5-rc2v1.10.51.10.X
* Update serverauthentication.cpp
* Fix oopsie
* Format
Diffstat (limited to 'NorthstarDLL/serverauthentication.cpp')
-rw-r--r-- | NorthstarDLL/serverauthentication.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/NorthstarDLL/serverauthentication.cpp b/NorthstarDLL/serverauthentication.cpp index f2068cd4..350d8521 100644 --- a/NorthstarDLL/serverauthentication.cpp +++ b/NorthstarDLL/serverauthentication.cpp @@ -396,9 +396,12 @@ void,, (R2::CBaseClient* self, uint32_t unknownButAlways1, const char* pReason, if (g_pServerAuthentication->m_PlayerAuthenticationData[self].needPersistenceWriteOnLeave) g_pServerAuthentication->WritePersistentData(self); 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)) + else if (g_pServerAuthentication->m_RemoteAuthenticationData.count(self->m_Name)) { g_pServerAuthentication->RemovePlayer(self); g_pServerLimits->RemovePlayer(self); |