summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_atoms.c2
-rw-r--r--src/ui/ui_local.h1
-rw-r--r--src/ui/ui_main.c4
3 files changed, 1 insertions, 6 deletions
diff --git a/src/ui/ui_atoms.c b/src/ui/ui_atoms.c
index c78df7ff..9f0f3a9a 100644
--- a/src/ui/ui_atoms.c
+++ b/src/ui/ui_atoms.c
@@ -135,13 +135,11 @@ static void UI_MessageMode_f( void )
case '\0':
// Global
uiInfo.chatTeam = qfalse;
- uiInfo.chatTargetClientNum = -1;
break;
case '2':
// Team
uiInfo.chatTeam = qtrue;
- uiInfo.chatTargetClientNum = -1;
break;
}
diff --git a/src/ui/ui_local.h b/src/ui/ui_local.h
index 938f1e23..241cb6d8 100644
--- a/src/ui/ui_local.h
+++ b/src/ui/ui_local.h
@@ -282,7 +282,6 @@ typedef struct
qboolean inGameLoad;
qboolean chatTeam;
- int chatTargetClientNum;
}
uiInfo_t;
diff --git a/src/ui/ui_main.c b/src/ui/ui_main.c
index 07883fc8..c63dae79 100644
--- a/src/ui/ui_main.c
+++ b/src/ui/ui_main.c
@@ -2995,9 +2995,7 @@ static void UI_RunMenuScript( char **args )
if( buffer[ 0 ] )
{
- if( uiInfo.chatTargetClientNum != -1 )
- trap_Cmd_ExecuteText( EXEC_APPEND, va( "tell %i \"%s\"\n", uiInfo.chatTargetClientNum, buffer ) );
- else if( uiInfo.chatTeam )
+ if( uiInfo.chatTeam )
trap_Cmd_ExecuteText( EXEC_APPEND, va( "say_team \"%s\"\n", buffer ) );
else
trap_Cmd_ExecuteText( EXEC_APPEND, va( "say \"%s\"\n", buffer ) );