Fixes shift in message mode stuff. I prolly need to fix it elsewhere too... mneh.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3327 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2009-07-21 00:48:19 +00:00
parent 4b6f269963
commit b60e062fc7

View file

@ -814,7 +814,7 @@ qboolean chat_team;
char chat_buffer[MAXCMDLINE];
int chat_bufferlen = 0;
void Key_Message (int key)
void Key_Message (int key, int unicode)
{
if (key == K_ENTER)
@ -855,7 +855,7 @@ void Key_Message (int key)
if (chat_bufferlen == sizeof(chat_buffer)-1)
return; // all full
chat_buffer[chat_bufferlen++] = key;
chat_buffer[chat_bufferlen++] = unicode;
chat_buffer[chat_bufferlen] = 0;
}
@ -1496,7 +1496,7 @@ void Key_Event (int key, unsigned int unicode, qboolean down)
switch (key_dest)
{
case key_message:
Key_Message (key);
Key_Message (key, unicode);
break;
case key_menu:
M_Keydown (key);
@ -1636,7 +1636,7 @@ void Key_Event (int key, unsigned int unicode, qboolean down)
switch (key_dest)
{
case key_message:
Key_Message (key);
Key_Message (key, unicode);
break;
case key_menu:
M_Keydown (key);