diff options
Diffstat (limited to 'src/client/cl_console.c')
-rw-r--r-- | src/client/cl_console.c | 85 |
1 files changed, 0 insertions, 85 deletions
diff --git a/src/client/cl_console.c b/src/client/cl_console.c index d740696d..0ad397b9 100644 --- a/src/client/cl_console.c +++ b/src/client/cl_console.c @@ -82,67 +82,6 @@ void Con_ToggleConsole_f (void) { /* ================ -Con_MessageMode_f -================ -*/ -void Con_MessageMode_f (void) { - chat_playerNum = -1; - chat_team = qfalse; - Field_Clear( &chatField ); - chatField.widthInChars = 30; - - Key_SetCatcher( Key_GetCatcher( ) ^ KEYCATCH_MESSAGE ); -} - -/* -================ -Con_MessageMode2_f -================ -*/ -void Con_MessageMode2_f (void) { - chat_playerNum = -1; - chat_team = qtrue; - Field_Clear( &chatField ); - chatField.widthInChars = 25; - Key_SetCatcher( Key_GetCatcher( ) ^ KEYCATCH_MESSAGE ); -} - -/* -================ -Con_MessageMode3_f -================ -*/ -void Con_MessageMode3_f (void) { - chat_playerNum = VM_Call( cgvm, CG_CROSSHAIR_PLAYER ); - if ( chat_playerNum < 0 || chat_playerNum >= MAX_CLIENTS ) { - chat_playerNum = -1; - return; - } - chat_team = qfalse; - Field_Clear( &chatField ); - chatField.widthInChars = 30; - Key_SetCatcher( Key_GetCatcher( ) ^ KEYCATCH_MESSAGE ); -} - -/* -================ -Con_MessageMode4_f -================ -*/ -void Con_MessageMode4_f (void) { - chat_playerNum = VM_Call( cgvm, CG_LAST_ATTACKER ); - if ( chat_playerNum < 0 || chat_playerNum >= MAX_CLIENTS ) { - chat_playerNum = -1; - return; - } - chat_team = qfalse; - Field_Clear( &chatField ); - chatField.widthInChars = 30; - Key_SetCatcher( Key_GetCatcher( ) ^ KEYCATCH_MESSAGE ); -} - -/* -================ Con_Clear_f ================ */ @@ -314,10 +253,6 @@ void Con_Init (void) { CL_LoadConsoleHistory( ); Cmd_AddCommand ("toggleconsole", Con_ToggleConsole_f); - Cmd_AddCommand ("messagemode", Con_MessageMode_f); - Cmd_AddCommand ("messagemode2", Con_MessageMode2_f); - Cmd_AddCommand ("messagemode3", Con_MessageMode3_f); - Cmd_AddCommand ("messagemode4", Con_MessageMode4_f); Cmd_AddCommand ("clear", Con_Clear_f); Cmd_AddCommand ("condump", Con_Dump_f); } @@ -606,26 +541,6 @@ void Con_DrawConsole( void ) { if( Key_GetCatcher( ) & ( KEYCATCH_UI | KEYCATCH_CGAME ) ) return; - - // draw the chat line - if( Key_GetCatcher( ) & KEYCATCH_MESSAGE ) - { - int skip; - - if( chat_team ) - { - SCR_DrawBigString( 8, 232, "Team Say:", 1.0f, qfalse ); - skip = 11; - } - else - { - SCR_DrawBigString( 8, 232, "Say:", 1.0f, qfalse ); - skip = 5; - } - - Field_BigDraw( &chatField, skip * BIGCHAR_WIDTH, 232, - SCREEN_WIDTH - ( skip + 1 ) * BIGCHAR_WIDTH, qtrue, qtrue ); - } } //================================================================ |