Add con_autochat and con_autoclear cvars
This commit is contained in:
parent
c12b81a273
commit
dfce71929a
6 changed files with 35 additions and 7 deletions
|
@ -56,6 +56,7 @@ typedef struct {
|
|||
console_t con;
|
||||
|
||||
cvar_t *con_conspeed;
|
||||
cvar_t *con_autoclear;
|
||||
cvar_t *con_notifytime;
|
||||
|
||||
#define DEFAULT_CONSOLE_WIDTH 78
|
||||
|
@ -72,7 +73,10 @@ void Con_ToggleConsole_f (void) {
|
|||
return;
|
||||
}
|
||||
|
||||
Field_Clear( &g_consoleField );
|
||||
if ( con_autoclear->integer ) {
|
||||
Field_Clear( &g_consoleField );
|
||||
}
|
||||
|
||||
g_consoleField.widthInChars = g_console_field_width;
|
||||
|
||||
Con_ClearNotify ();
|
||||
|
@ -354,6 +358,7 @@ void Con_Init (void) {
|
|||
|
||||
con_notifytime = Cvar_Get ("con_notifytime", "3", 0);
|
||||
con_conspeed = Cvar_Get ("scr_conspeed", "3", 0);
|
||||
con_autoclear = Cvar_Get("con_autoclear", "1", CVAR_ARCHIVE);
|
||||
|
||||
Field_Clear( &g_consoleField );
|
||||
g_consoleField.widthInChars = g_console_field_width;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue