This commit is contained in:
Riley Labrecque
2020-08-02 09:21:00 -07:00
parent 52dd1a04d6
commit 274fcbbbed
44 changed files with 703 additions and 207 deletions
+7
View File
@@ -251,6 +251,10 @@ void CSpaceWarClient::DisconnectFromServer()
MsgClientLeavingServer_t msg;
BSendServerData( &msg, sizeof(msg) );
// tell steam china duration control system that we are no longer in a match
SteamUser()->BSetDurationControlOnlineState( k_EDurationControlOnlineState_Offline );
m_eConnectedStatus = k_EClientNotConnected;
}
if ( m_pP2PAuthedGame )
@@ -337,6 +341,9 @@ void CSpaceWarClient::OnReceiveServerAuthenticationResponse( bool bSuccess, uint
// set information so our friends can join the lobby
UpdateRichPresenceConnectionInfo();
// tell steam china duration control system that we are in a match and not to be interrupted
SteamUser()->BSetDurationControlOnlineState( k_EDurationControlOnlineState_OnlineHighPri );
// send a ping, to measure round-trip time
m_ulPingSentTime = m_pGameEngine->GetGameTickCount();
MsgClientPing_t msg;