Skip to content

Commit

Permalink
Fix player count in server presence (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
emma-miler authored and GeckoEidechse committed Nov 6, 2022
1 parent 72d418f commit 7fa5704
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions NorthstarDLL/serverauthentication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());

Expand Down

0 comments on commit 7fa5704

Please sign in to comment.