diff options
author | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-19 20:22:04 +0100 |
---|---|---|
committer | BobTheBob <32057864+BobTheBob9@users.noreply.github.com> | 2021-10-19 20:22:04 +0100 |
commit | 48acde84bd58c82eaa3a9838757dfcd05ab4ebf5 (patch) | |
tree | 429dd17294784175cce59b01ba071c728b3eabd1 /NorthstarDedicatedTest/serverauthentication.cpp | |
parent | ed7e4fed4ddedaf9d4c181052ca552a0914d57bb (diff) | |
download | NorthstarLauncher-48acde84bd58c82eaa3a9838757dfcd05ab4ebf5.tar.gz NorthstarLauncher-48acde84bd58c82eaa3a9838757dfcd05ab4ebf5.zip |
add reconnecting to local lobby with auth on leave
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) { |