Skip to content

Commit

Permalink
show filtered dedicated server list while full list is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Nov 9, 2023
1 parent e2836c9 commit 9d5dd52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/game/client/swarm/gameui/swarm/vfoundpublicgames.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,17 @@ void FoundPublicGames::AddPublicGamesToList()

void FoundPublicGames::AddDedicatedServersToList()
{
if ( !g_ReactiveDropServerList.m_InternetServers.Count() )
{
// While we're doing our first unfiltered query, show the filtered server list we retrieved on the main menu.
FOR_EACH_VEC( g_ReactiveDropServerList.m_PublicServers, i )
{
FoundGameListItem::Info info;
if ( info.SetFromServer( g_ReactiveDropServerList.m_PublicServers, i ) )
AddGameFromDetails( info );
}
}

g_ReactiveDropServerList.m_InternetServers.WantUpdatedServerList();

FOR_EACH_VEC( g_ReactiveDropServerList.m_InternetServers, i )
Expand Down

0 comments on commit 9d5dd52

Please sign in to comment.