summaryrefslogtreecommitdiff
path: root/src/hexen
diff options
context:
space:
mode:
authorSimon Howard2011-10-22 17:23:25 +0000
committerSimon Howard2011-10-22 17:23:25 +0000
commitcfd1a3f8f739b049af04b9e637db9a51758cef27 (patch)
tree4235481747909a278aa8b6f3b4e10341a511f009 /src/hexen
parent4a356b565d08ee48dbe8d920876fd73a72dbc016 (diff)
downloadchocolate-doom-cfd1a3f8f739b049af04b9e637db9a51758cef27.tar.gz
chocolate-doom-cfd1a3f8f739b049af04b9e637db9a51758cef27.tar.bz2
chocolate-doom-cfd1a3f8f739b049af04b9e637db9a51758cef27.zip
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
Diffstat (limited to 'src/hexen')
-rw-r--r--src/hexen/ct_chat.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/hexen/ct_chat.c b/src/hexen/ct_chat.c
index 0d0dd49b..fab7582d 100644
--- a/src/hexen/ct_chat.c
+++ b/src/hexen/ct_chat.c
@@ -52,12 +52,6 @@ enum
CT_PLR_ALL
};
-// KEY_BACKSPACE (ASCII code 0x08) can't be used, because it conflicts with
-// CT_PLR_PLAYER8. Investigation reveals that Vanilla Hexen appears to use
-// this value for backspace.
-
-#define CT_BACKSPACE 0x7f
-
#define CT_ESCAPE 6
// Public data
@@ -285,7 +279,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))
@@ -364,7 +358,7 @@ void CT_Ticker(void)
}
CT_ClearChatMessage(i);
}
- else if (c == CT_BACKSPACE)
+ else if (c == KEY_BACKSPACE)
{
CT_BackSpace(i);
}