removing multiplex-sessions from matchmaking (#3357)

This commit is contained in:
CringeArab 2024-07-15 14:01:22 +03:00 committed by GitHub
parent e23583583f
commit a25e0e7d0a
2 changed files with 7 additions and 4 deletions

View File

@ -29,9 +29,11 @@ namespace big
auto host_rid =
g_matchmaking_service->get_found_sessions()[i].info.m_net_player_data.m_gamer_handle.m_rockstar_id;
auto player = g_player_database_service->get_player_by_rockstar_id(host_rid);
auto multiplex_count = g_matchmaking_service->get_found_sessions()[i].attributes.multiplex_count;
if (g.session_browser.exclude_modder_sessions && player && player->block_join)
continue;
if ((g.session_browser.exclude_modder_sessions && player && player->block_join) ||
(g.session_browser.filter_multiplexed_sessions && multiplex_count > 1))
continue;
results[*num_sessions_found] = g_matchmaking_service->get_found_sessions()[i].info;
(*num_sessions_found)++;

View File

@ -43,8 +43,9 @@ namespace big
auto host_rid = session.info.m_net_player_data.m_gamer_handle.m_rockstar_id;
auto player = g_player_database_service->get_player_by_rockstar_id(host_rid);
if (g.session_browser.exclude_modder_sessions && player && player->block_join)
continue;
if ((g.session_browser.exclude_modder_sessions && player && player->block_join) ||
(g.session_browser.filter_multiplexed_sessions && session.attributes.multiplex_count > 1))
continue;
if (components::selectable(session_str, i == selected_session_idx))
{