aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/masterserver.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-19 20:22:04 +0100
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2021-10-19 20:22:04 +0100
commit48acde84bd58c82eaa3a9838757dfcd05ab4ebf5 (patch)
tree429dd17294784175cce59b01ba071c728b3eabd1 /NorthstarDedicatedTest/masterserver.cpp
parented7e4fed4ddedaf9d4c181052ca552a0914d57bb (diff)
downloadNorthstarLauncher-48acde84bd58c82eaa3a9838757dfcd05ab4ebf5.tar.gz
NorthstarLauncher-48acde84bd58c82eaa3a9838757dfcd05ab4ebf5.zip
add reconnecting to local lobby with auth on leave
Diffstat (limited to 'NorthstarDedicatedTest/masterserver.cpp')
-rw-r--r--NorthstarDedicatedTest/masterserver.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/masterserver.cpp b/NorthstarDedicatedTest/masterserver.cpp
index 3072b6b2..b3b14c8a 100644
--- a/NorthstarDedicatedTest/masterserver.cpp
+++ b/NorthstarDedicatedTest/masterserver.cpp
@@ -287,6 +287,13 @@ void MasterServerManager::AuthenticateWithOwnServer(char* uid, char* playerToken
REQUEST_END_CLEANUP:
m_authenticatingWithGameServer = false;
m_scriptAuthenticatingWithGameServer = false;
+
+ if (m_bNewgameAfterSelfAuth)
+ {
+ // pretty sure this is threadsafe?
+ Cbuf_AddText(Cbuf_GetCurrentPlayer(), "ns_end_reauth_and_leave_to_lobby", cmd_source_t::kCommandSrcCode);
+ m_bNewgameAfterSelfAuth = false;
+ }
});
requestThread.detach();
@@ -621,6 +628,7 @@ void CHostState__State_NewGameHook(CHostState* hostState)
g_ServerAuthenticationManager->StartPlayerAuthServer();
CHostState__State_NewGame(hostState);
+ g_ServerAuthenticationManager->m_bNeedLocalAuthForNewgame = false;
}
void CHostState__State_ChangeLevelMPHook(CHostState* hostState)