mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-19 02:22:01 +00:00
keys.c: K_BACKSPACE (127) is a non printable character.
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1021 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
9f2271278e
commit
157f883cc1
1 changed files with 2 additions and 2 deletions
|
@ -451,7 +451,7 @@ void Char_Console (int key)
|
||||||
size_t len;
|
size_t len;
|
||||||
char *workline = key_lines[edit_line];
|
char *workline = key_lines[edit_line];
|
||||||
|
|
||||||
if (key < 32 || key > 127)
|
if (key < 32 || key > 126)
|
||||||
return; // non printable
|
return; // non printable
|
||||||
|
|
||||||
if (key_linepos < MAXCMDLINE-1)
|
if (key_linepos < MAXCMDLINE-1)
|
||||||
|
@ -539,7 +539,7 @@ void Key_Message (int key)
|
||||||
|
|
||||||
void Char_Message (int key)
|
void Char_Message (int key)
|
||||||
{
|
{
|
||||||
if (key < 32 || key > 127)
|
if (key < 32 || key > 126)
|
||||||
return; // non printable
|
return; // non printable
|
||||||
|
|
||||||
if (chat_bufferlen == sizeof(chat_buffer) - 1)
|
if (chat_bufferlen == sizeof(chat_buffer) - 1)
|
||||||
|
|
Loading…
Reference in a new issue