mirror of
https://github.com/rlabrecque/SteamworksSDK.git
synced 2026-10-10 09:33:04 +08:00
v1.49
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user