From: divverent Date: Fri, 29 Oct 2010 14:27:07 +0000 (+0000) Subject: don't translate \0 to \uE000 when receiving that keycode (as it simply is a nonprinta... X-Git-Tag: xonotic-v0.1.0preview~56^2~52 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=392dbf4d5756cd56b80326aff4f85033a60b4b02;p=xonotic%2Fdarkplaces.git don't translate \0 to \uE000 when receiving that keycode (as it simply is a nonprintable key then) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10565 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/keys.c b/keys.c index d182291c..8fe972c4 100644 --- a/keys.c +++ b/keys.c @@ -1203,7 +1203,7 @@ Key_Message (int key, int ascii) } // ctrl+key generates an ascii value < 32 and shows a char from the charmap - if (ascii < 32 && utf8_enable.integer) + if (ascii > 0 && ascii < 32 && utf8_enable.integer) ascii = 0xE000 + ascii; if (chat_bufferlen == sizeof (chat_buffer) - 1)