From 393a86566031f16fde92b6c60c0732cbd34eb333 Mon Sep 17 00:00:00 2001 From: /dev/humancontroller Date: Wed, 18 Mar 2015 16:39:33 +0100 Subject: make the ignore functionality even transmission-complete, moving the necessary parts to the game module TODO: implement the vsay-equivalent of G_SayTo() --- src/cgame/cg_local.h | 1 - src/cgame/cg_players.c | 7 ------- src/cgame/cg_servercmds.c | 7 ------- 3 files changed, 15 deletions(-) (limited to 'src/cgame') diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index e759eaba..404351f5 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -1403,7 +1403,6 @@ typedef struct cgMedia_t media; voice_t *voices; - clientList_t ignoreList; } cgs_t; typedef struct diff --git a/src/cgame/cg_players.c b/src/cgame/cg_players.c index c882dd37..0060d661 100644 --- a/src/cgame/cg_players.c +++ b/src/cgame/cg_players.c @@ -746,13 +746,6 @@ void CG_NewClientInfo( int clientNum ) // the old value memset( &newInfo, 0, sizeof( newInfo ) ); - // grab our own ignoreList - if( clientNum == cg.predictedPlayerState.clientNum ) - { - v = Info_ValueForKey( configstring, "ig" ); - Com_ClientListParse( &cgs.ignoreList, v ); - } - // isolate the player's name v = Info_ValueForKey( configstring, "n" ); Q_strncpyz( newInfo.name, v, sizeof( newInfo.name ) ); diff --git a/src/cgame/cg_servercmds.c b/src/cgame/cg_servercmds.c index 5e2c20da..fec4cfae 100644 --- a/src/cgame/cg_servercmds.c +++ b/src/cgame/cg_servercmds.c @@ -896,9 +896,6 @@ static void CG_Say( int clientNum, saymode_t mode, const char *text ) Com_sprintf( prefix, sizeof( prefix ), "[%s%c" S_COLOR_WHITE "] ", tcolor, toupper( *( BG_TeamName( ci->team ) ) ) ); - if( Com_ClientListContains( &cgs.ignoreList, clientNum ) ) - ignore = "[skipnotify]"; - if( ( mode == SAY_TEAM || mode == SAY_AREA ) && cg.snap->ps.pm_type != PM_INTERMISSION ) { @@ -1120,10 +1117,6 @@ static void CG_ParseVoice( void ) if( !track ) return; - // don't play audio track for lamers - if( Com_ClientListContains( &cgs.ignoreList, clientNum ) ) - return; - switch( vChan ) { case VOICE_CHAN_ALL: -- cgit