Skip to content

Commit

Permalink
Fix prior hacky fix to actually fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
VITALISED committed Jan 6, 2022
1 parent c4d7534 commit 46a3915
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ void function UpdateVisibleModes()
}

array<string> modesArray = GetPrivateMatchModes()
modesArray.remove(0) // remove the "SWITCH_ANY" mode (I don't think this is used) (humble opinion)
for ( int i = 0; i < MODES_PER_PAGE; i++ )
{
if ( i + ( file.currentModePage * MODES_PER_PAGE ) >= modesArray.len() )
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,16 +134,16 @@ void function InitServerBrowserMenu()
file.serversLatency = GetElementsByClassname( file.menu, "ServerLatency" )

// Create filter arrays
// filterArguments.filterMaps.extend(GetPrivateMatchMaps())
// filterArguments.filterMaps.insert(0, "SWITCH_ANY")
// filterArguments.filterMaps.append("mp_lobby")
filterArguments.filterMaps.extend(GetPrivateMatchMaps())
filterArguments.filterMaps.insert(0, "SWITCH_ANY")
filterArguments.filterMaps.append("mp_lobby")

foreach ( int enum_, string map in filterArguments.filterMaps )
Hud_DialogList_AddListItem( Hud_GetChild( file.menu, "SwtBtnSelectMap" ) , map, string( enum_ ) )


// filterArguments.filterGamemodes = GetPrivateMatchModes()
// filterArguments.filterGamemodes.insert(0, "SWITCH_ANY")
filterArguments.filterGamemodes = GetPrivateMatchModes()
filterArguments.filterGamemodes.insert(0, "SWITCH_ANY")

// GetGameModeDisplayName( mode ) requires server talk even if it can be entirely client side
foreach ( int enum_, string mode in filterArguments.filterGamemodes )
Expand Down

0 comments on commit 46a3915

Please sign in to comment.