summaryrefslogtreecommitdiff
path: root/src/cgame
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2015-03-18 16:39:33 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:11 +0100
commit393a86566031f16fde92b6c60c0732cbd34eb333 (patch)
tree0680da6531c89e263b678528d06dbb7e2532b4da /src/cgame
parentff14745db8689e06530d6aae44b58140389ae82c (diff)
make the ignore functionality even transmission-complete, moving the necessary parts to the game module
TODO: implement the vsay-equivalent of G_SayTo()
Diffstat (limited to 'src/cgame')
-rw-r--r--src/cgame/cg_local.h1
-rw-r--r--src/cgame/cg_players.c7
-rw-r--r--src/cgame/cg_servercmds.c7
3 files changed, 0 insertions, 15 deletions
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: