mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-20 07:20:50 +00:00
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:
parent
4b6f269963
commit
b60e062fc7
1 changed files with 4 additions and 4 deletions
|
@ -814,7 +814,7 @@ qboolean chat_team;
|
||||||
char chat_buffer[MAXCMDLINE];
|
char chat_buffer[MAXCMDLINE];
|
||||||
int chat_bufferlen = 0;
|
int chat_bufferlen = 0;
|
||||||
|
|
||||||
void Key_Message (int key)
|
void Key_Message (int key, int unicode)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (key == K_ENTER)
|
if (key == K_ENTER)
|
||||||
|
@ -855,7 +855,7 @@ void Key_Message (int key)
|
||||||
if (chat_bufferlen == sizeof(chat_buffer)-1)
|
if (chat_bufferlen == sizeof(chat_buffer)-1)
|
||||||
return; // all full
|
return; // all full
|
||||||
|
|
||||||
chat_buffer[chat_bufferlen++] = key;
|
chat_buffer[chat_bufferlen++] = unicode;
|
||||||
chat_buffer[chat_bufferlen] = 0;
|
chat_buffer[chat_bufferlen] = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1496,7 +1496,7 @@ void Key_Event (int key, unsigned int unicode, qboolean down)
|
||||||
switch (key_dest)
|
switch (key_dest)
|
||||||
{
|
{
|
||||||
case key_message:
|
case key_message:
|
||||||
Key_Message (key);
|
Key_Message (key, unicode);
|
||||||
break;
|
break;
|
||||||
case key_menu:
|
case key_menu:
|
||||||
M_Keydown (key);
|
M_Keydown (key);
|
||||||
|
@ -1636,7 +1636,7 @@ void Key_Event (int key, unsigned int unicode, qboolean down)
|
||||||
switch (key_dest)
|
switch (key_dest)
|
||||||
{
|
{
|
||||||
case key_message:
|
case key_message:
|
||||||
Key_Message (key);
|
Key_Message (key, unicode);
|
||||||
break;
|
break;
|
||||||
case key_menu:
|
case key_menu:
|
||||||
M_Keydown (key);
|
M_Keydown (key);
|
||||||
|
|
Loading…
Reference in a new issue