From e0da8b2b5a5b9d536b3e8e83a2d4d2ebecf02bff Mon Sep 17 00:00:00 2001 From: Emma Miler Date: Sun, 6 Nov 2022 02:42:58 +0100 Subject: Fix player count server presence (again) (#323) * Update serverauthentication.cpp * Fix oopsie * Format --- NorthstarDLL/serverauthentication.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); -- cgit v1.2.3