summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Levin <risujin@fastmail.fm>2009-10-03 11:17:01 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:14:49 +0000
commit098d9e61f1df2c8a9d8ea1997d2b50588bf5a3cd (patch)
tree9beb18afd3545070af8411f60d21482a813598fd /src
parentb0c2f4542a2e317cd1c3de013f2737811c2aafa1 (diff)
Team say prompt now says "Say to team:".
Diffstat (limited to 'src')
-rw-r--r--src/ui/ui_atoms.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c
index ab35533c..bb12a972 100644
--- a/src/ui/ui_atoms.c
+++ b/src/ui/ui_atoms.c
@@ -160,28 +160,24 @@ qboolean UI_ConsoleCommand( int realTime )
return qtrue;
}
- if( Q_strncmp( cmd, "ui_messagemode", 14 ) == 0 )
+ if( Q_stricmp( cmd, "ui_messagemode" ) == 0 )
{
trap_Cvar_Set( "ui_sayBuffer", "" );
+ uiInfo.chatTeam = qfalse;
- switch( cmd[ 14 ] )
- {
- default:
- case '\0':
- // Global
- uiInfo.chatTeam = qfalse;
- uiInfo.chatTargetClientNum = -1;
- break;
+ trap_Key_SetCatcher( KEYCATCH_UI );
+ Menus_ActivateByName( "say" );
+ return qtrue;
+ }
- case '2':
- // Team
- uiInfo.chatTeam = qtrue;
- uiInfo.chatTargetClientNum = -1;
- break;
- }
+ if( Q_stricmp( cmd, "ui_messagemode2" ) == 0 )
+ {
+ trap_Cvar_Set( "ui_sayBuffer", "" );
+ uiInfo.chatTargetClientNum = -1;
+ uiInfo.chatTeam = qtrue;
trap_Key_SetCatcher( KEYCATCH_UI );
- Menus_ActivateByName( "say" );
+ Menus_ActivateByName( "say_team" );
return qtrue;
}