void CUILobbyMP::LeaveGame() { CGameLobby* pGameLobby = g_pGame->GetGameLobby(); if (pGameLobby) { pGameLobby->LeaveSession(true); pGameLobby->SetMatchmakingGame(false); } }
void CUILobbyMP::WriteLeaderboardCallback(CryLobbyTaskID TaskID, ECryLobbyError Error, void *Arg) { if (Error > eCLE_SuccessContinue) GameWarning("CQuerySystem::WriteLeaderboardCallback: Failed to write, code: %i", Error); //test CGameLobby* pGameLobby = g_pGame->GetGameLobby(); if (pGameLobby) { pGameLobby->LeaveSession(true); pGameLobby->SetMatchmakingGame(false); } }