diff options
Diffstat (limited to 'src/ui')
-rw-r--r-- | src/ui/ui_main.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index f148b8c1..83092c72 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -1838,7 +1838,7 @@ static void UI_BuildPlayerList( void ) if( info[0] ) { - BG_ClientListParse( &uiInfo.ignoreList[ uiInfo.playerCount ], + Com_ClientListParse( &uiInfo.ignoreList[ uiInfo.playerCount ], Info_ValueForKey( info, "ig" ) ); Q_strncpyz( uiInfo.rawPlayerNames[uiInfo.playerCount], Info_ValueForKey( info, "n" ), MAX_NAME_LENGTH ); @@ -3277,17 +3277,17 @@ static void UI_RunMenuScript( char **args ) { if( uiInfo.ignoreIndex >= 0 && uiInfo.ignoreIndex < uiInfo.playerCount ) { - if( BG_ClientListTest( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + if( Com_ClientListContains( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ) { - BG_ClientListRemove( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + Com_ClientListRemove( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ); trap_Cmd_ExecuteText( EXEC_APPEND, va( "unignore %i\n", uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ); } else { - BG_ClientListAdd( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + Com_ClientListAdd( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ); trap_Cmd_ExecuteText( EXEC_APPEND, va( "ignore %i\n", uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ); @@ -3298,10 +3298,10 @@ static void UI_RunMenuScript( char **args ) { if( uiInfo.ignoreIndex >= 0 && uiInfo.ignoreIndex < uiInfo.playerCount ) { - if( !BG_ClientListTest( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + if( !Com_ClientListContains( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ) { - BG_ClientListAdd( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + Com_ClientListAdd( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ); trap_Cmd_ExecuteText( EXEC_APPEND, va( "ignore %i\n", uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ); @@ -3312,10 +3312,10 @@ static void UI_RunMenuScript( char **args ) { if( uiInfo.ignoreIndex >= 0 && uiInfo.ignoreIndex < uiInfo.playerCount ) { - if( BG_ClientListTest( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + if( Com_ClientListContains( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ) { - BG_ClientListRemove( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + Com_ClientListRemove( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ uiInfo.ignoreIndex ] ); trap_Cmd_ExecuteText( EXEC_APPEND, va( "unignore %i\n", uiInfo.clientNums[ uiInfo.ignoreIndex ] ) ); @@ -3539,12 +3539,12 @@ static const char *UI_FeederItemText( float feederID, int index, int column, qha { case 1: // am I ignoring him - return ( BG_ClientListTest( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], + return ( Com_ClientListContains( &uiInfo.ignoreList[ uiInfo.myPlayerIndex ], uiInfo.clientNums[ index ] ) ) ? "X" : ""; case 2: // is he ignoring me - return ( BG_ClientListTest( &uiInfo.ignoreList[ index ], + return ( Com_ClientListContains( &uiInfo.ignoreList[ index ], uiInfo.playerNumber ) ) ? "X" : ""; default: |