diff --git a/include/QF/keys.h b/include/QF/keys.h index 6b5bb2cd9..d2e1ea134 100644 --- a/include/QF/keys.h +++ b/include/QF/keys.h @@ -186,6 +186,8 @@ void Key_WriteBindings (VFile *f); void Key_SetBinding (int keynum, char *binding); void Key_ClearStates (void); +void Key_ClearTyping (void); + float Key_KeyState (kbutton_t *key); char *Key_KeynumToString (int keynum); diff --git a/nq/source/console.c b/nq/source/console.c index fb80f9587..543940873 100644 --- a/nq/source/console.c +++ b/nq/source/console.c @@ -82,14 +82,6 @@ extern int key_linepos; qboolean con_initialized; -void -Key_ClearTyping (void) -{ - key_lines[edit_line][1] = 0; // clear any typing - key_linepos = 1; -} - - void Con_ToggleConsole_f (void) { diff --git a/nq/source/keys.c b/nq/source/keys.c index 0e9ada7c3..2ede35f1f 100644 --- a/nq/source/keys.c +++ b/nq/source/keys.c @@ -867,3 +867,9 @@ Key_ClearStates (void) } } +void +Key_ClearTyping (void) +{ + key_lines[edit_line][1] = 0; // clear any typing + key_linepos = 1; +} diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index a254ae585..988672695 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -947,7 +947,7 @@ CL_ConnectionlessPacket (void) Con_Printf("status response\n"); return; } - Con_Print (s); + Con_Printf ("%s", s); return; } // ping from somewhere diff --git a/qw/source/console.c b/qw/source/console.c index fb80f9587..543940873 100644 --- a/qw/source/console.c +++ b/qw/source/console.c @@ -82,14 +82,6 @@ extern int key_linepos; qboolean con_initialized; -void -Key_ClearTyping (void) -{ - key_lines[edit_line][1] = 0; // clear any typing - key_linepos = 1; -} - - void Con_ToggleConsole_f (void) { diff --git a/qw/source/keys.c b/qw/source/keys.c index 5775c8a18..a9b67f205 100644 --- a/qw/source/keys.c +++ b/qw/source/keys.c @@ -867,3 +867,10 @@ Key_ClearStates (void) key_repeats[i] = false; } } + +void +Key_ClearTyping (void) +{ + key_lines[edit_line][1] = 0; // clear any typing + key_linepos = 1; +}