Skip to content

Commit

Permalink
I am a terrible bug fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
VITALISED committed Jan 6, 2022
1 parent 46a3915 commit 553d6a1
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,16 @@ void function UpdateVisibleModes()
}

array<string> modesArray = GetPrivateMatchModes()
modesArray.remove(0) // remove the "SWITCH_ANY" mode (I don't think this is used) (humble opinion)
if(GetGameModeDisplayName( modesArray[ 0 ] ) == "")
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() )
break

int modeIndex = i + ( file.currentModePage * MODES_PER_PAGE )

SetButtonRuiText( buttons[ i ], GetGameModeDisplayName( modesArray[ modeIndex ] ) )

Hud_SetEnabled( buttons[ i ], true )
Expand Down

0 comments on commit 553d6a1

Please sign in to comment.