diff options
author | M. Kristall <mkpdev@gmail.com> | 2009-10-12 20:23:36 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2013-01-03 00:16:48 +0000 |
commit | 6e5fbea644646afa82130be9bf366d866c9838ca (patch) | |
tree | a671d873b76bf8ca581b733b96f9148c52e4b7da /src/game/g_svcmds.c | |
parent | ea793aff3bddd1792dc223cf946b33ed1318fd7f (diff) |
* Move more things to cgame
* Bring back "teamoverlay" cvar and default it to 1
* Add "cg_chatTeamPrefix" cvar
Diffstat (limited to 'src/game/g_svcmds.c')
-rw-r--r-- | src/game/g_svcmds.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/game/g_svcmds.c b/src/game/g_svcmds.c index 818cdfc7..275db7b6 100644 --- a/src/game/g_svcmds.c +++ b/src/game/g_svcmds.c @@ -354,7 +354,6 @@ static void Svcmd_MapRotation_f( void ) static void Svcmd_TeamMessage_f( void ) { char teamNum[ 2 ]; - const char* prefix; team_t team; if( trap_Argc( ) < 3 ) @@ -372,11 +371,8 @@ static void Svcmd_TeamMessage_f( void ) return; } - prefix = BG_TeamName( team ); - prefix = va( "[%c] ", toupper( *prefix ) ); - - G_TeamCommand( team, va( "tchat \"(console): " S_COLOR_CYAN "%s\"", ConcatArgs( 2 ) ) ); - G_LogPrintf( "SayTeam: -1 \"console\": " S_COLOR_CYAN "%s\n", ConcatArgs( 2 ) ); + G_TeamCommand( team, va( "tchat -1 \"%s\"", ConcatArgs( 2 ) ) ); + G_LogPrintf( "SayTeam: -1 \"console\": %s\n", ConcatArgs( 2 ) ); } static void Svcmd_CenterPrint_f( void ) @@ -491,7 +487,7 @@ static void Svcmd_PrintQueue_f( void ) static void Svcmd_Chat_f( void ) { char *s = ConcatArgs( 1 ); - trap_SendServerCommand( -1, va( "chat \"%s\"", s ) ); + trap_SendServerCommand( -1, va( "chat -1 \"%s\"", s ) ); G_LogPrintf("chat: %s\n", s ); } |