diff options
Diffstat (limited to 'src/ui/ui_main.c')
-rw-r--r-- | src/ui/ui_main.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c index 2813c874..3c1d21ec 100644 --- a/src/ui/ui_main.c +++ b/src/ui/ui_main.c @@ -3047,16 +3047,11 @@ static void UI_RunMenuScript( char **args ) trap_Cvar_VariableStringBuffer( "ui_sayBuffer", buffer, sizeof( buffer ) ); if( buffer[ 0 ] == '/' || buffer[ 0 ] == '\\' ) - { - Menus_ReplaceActiveByName( "say_command" ); - } + Menus_ReplaceActiveByName( "say_command" ); + else if( uiInfo.chatTeam ) + Menus_ReplaceActiveByName( "say_team" ); else - { - if( !uiInfo.chatTeam ) - Menus_ReplaceActiveByName( "say" ); - else - Menus_ReplaceActiveByName( "say_team" ); - } + Menus_ReplaceActiveByName( "say" ); } } else if( Q_stricmp( name, "playMovie" ) == 0 ) |