diff options
Diffstat (limited to 'NorthstarDedicatedTest/serverauthentication.cpp')
-rw-r--r-- | NorthstarDedicatedTest/serverauthentication.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/serverauthentication.cpp b/NorthstarDedicatedTest/serverauthentication.cpp index d7fb1542..52e376f6 100644 --- a/NorthstarDedicatedTest/serverauthentication.cpp +++ b/NorthstarDedicatedTest/serverauthentication.cpp @@ -159,6 +159,10 @@ bool ServerAuthenticationManager::RemovePlayerAuthData(void* player) if (!Cvar_ns_erase_auth_info->m_nValue) return false; + // hack for special case where we're on a local server, so we erase our own newly created auth data on disconnect + if (m_bNeedLocalAuthForNewgame && !strcmp((char*)player + 0xF500, g_LocalPlayerUserID)) + return false; + // we don't have our auth token at this point, so lookup authdata by uid for (auto& auth : m_authData) { |