summaryrefslogtreecommitdiff
path: root/src/client/cl_keys.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/cl_keys.c')
-rw-r--r--src/client/cl_keys.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/src/client/cl_keys.c b/src/client/cl_keys.c
index b23247bd..66597427 100644
--- a/src/client/cl_keys.c
+++ b/src/client/cl_keys.c
@@ -35,10 +35,6 @@ int historyLine; // the line being displayed from history buffer
// will be <= nextHistoryLine
field_t g_consoleField;
-field_t chatField;
-qboolean chat_team;
-
-int chat_playerNum;
qboolean key_overstrikeMode;
@@ -705,51 +701,6 @@ void Console_Key (int key) {
Field_KeyDownEvent( &g_consoleField, key );
}
-//============================================================================
-
-
-/*
-================
-Message_Key
-
-In game talk message
-================
-*/
-void Message_Key( int key ) {
-
- char buffer[MAX_STRING_CHARS];
-
-
- if (key == K_ESCAPE) {
- Key_SetCatcher( Key_GetCatcher( ) & ~KEYCATCH_MESSAGE );
- Field_Clear( &chatField );
- return;
- }
-
- if ( key == K_ENTER || key == K_KP_ENTER )
- {
- if ( chatField.buffer[0] && cls.state == CA_ACTIVE ) {
- if (chat_playerNum != -1 )
-
- Com_sprintf( buffer, sizeof( buffer ), "tell %i \"%s\"\n", chat_playerNum, chatField.buffer );
-
- else if (chat_team)
-
- Com_sprintf( buffer, sizeof( buffer ), "say_team \"%s\"\n", chatField.buffer );
- else
- Com_sprintf( buffer, sizeof( buffer ), "say \"%s\"\n", chatField.buffer );
-
-
-
- CL_AddReliableCommand( buffer );
- }
- Key_SetCatcher( Key_GetCatcher( ) & ~KEYCATCH_MESSAGE );
- Field_Clear( &chatField );
- return;
- }
-
- Field_KeyDownEvent( &chatField, key );
-}
//============================================================================
@@ -1186,12 +1137,6 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) {
// escape is always handled special
if ( key == K_ESCAPE && down ) {
- if ( Key_GetCatcher( ) & KEYCATCH_MESSAGE ) {
- // clear message mode
- Message_Key( key );
- return;
- }
-
// escape always gets out of CGAME stuff
if (Key_GetCatcher( ) & KEYCATCH_CGAME) {
Key_SetCatcher( Key_GetCatcher( ) & ~KEYCATCH_CGAME );
@@ -1249,8 +1194,6 @@ void CL_KeyEvent (int key, qboolean down, unsigned time) {
if ( cgvm ) {
VM_Call( cgvm, CG_KEY_EVENT, key, down );
}
- } else if ( Key_GetCatcher( ) & KEYCATCH_MESSAGE ) {
- Message_Key( key );
} else if ( cls.state == CA_DISCONNECTED ) {
Console_Key( key );
} else {
@@ -1325,10 +1268,6 @@ void CL_CharEvent( int key ) {
{
VM_Call( uivm, UI_KEY_EVENT, key | K_CHAR_FLAG, qtrue );
}
- else if ( Key_GetCatcher( ) & KEYCATCH_MESSAGE )
- {
- Field_CharEvent( &chatField, key );
- }
else if ( cls.state == CA_DISCONNECTED )
{
Field_CharEvent( &g_consoleField, key );