move a Key function out of console and into keys.

replace a Con_Print call with Con_Printf ("%s", ...) (I want to make Con_Print
private)
This commit is contained in:
Bill Currie 2001-07-11 19:17:58 +00:00
parent 4cf5648fcc
commit 7ca4383790
6 changed files with 16 additions and 17 deletions

View file

@ -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);

View file

@ -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)
{

View file

@ -867,3 +867,9 @@ Key_ClearStates (void)
}
}
void
Key_ClearTyping (void)
{
key_lines[edit_line][1] = 0; // clear any typing
key_linepos = 1;
}

View file

@ -947,7 +947,7 @@ CL_ConnectionlessPacket (void)
Con_Printf("status response\n");
return;
}
Con_Print (s);
Con_Printf ("%s", s);
return;
}
// ping from somewhere

View file

@ -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)
{

View file

@ -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;
}