From cfd1a3f8f739b049af04b9e637db9a51758cef27 Mon Sep 17 00:00:00 2001 From: Simon Howard Date: Sat, 22 Oct 2011 17:23:25 +0000 Subject: Change KEY_BACKSPACE to 0x7f to fix problems with the backspace key not working in multiplayer chat. This matches the definition for the value from the Doom source release. Subversion-branch: /branches/v2-branch Subversion-revision: 2456 --- src/heretic/ct_chat.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/heretic') diff --git a/src/heretic/ct_chat.c b/src/heretic/ct_chat.c index 01e43383..4b89fe89 100644 --- a/src/heretic/ct_chat.c +++ b/src/heretic/ct_chat.c @@ -47,9 +47,6 @@ #define CT_PLR_BLUE 4 #define CT_PLR_ALL 5 -// Vanilla Heretic seems to use this for KEY_BACKSPACE (tcpdump'ed trace): -#define CT_BACKSPACE 0x7f - #define CT_ESCAPE 6 // Public data @@ -244,7 +241,7 @@ boolean CT_Responder(event_t * ev) } else if (ev->data1 == KEY_BACKSPACE) { - CT_queueChatChar(CT_BACKSPACE); + CT_queueChatChar(KEY_BACKSPACE); return true; } else if (ValidChatChar(ev->data2)) @@ -331,7 +328,7 @@ void CT_Ticker(void) } CT_ClearChatMessage(i); } - else if (c == CT_BACKSPACE) + else if (c == KEY_BACKSPACE) { CT_BackSpace(i); } -- cgit v1.2.3