summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Howard2009-06-03 23:20:06 +0000
committerSimon Howard2009-06-03 23:20:06 +0000
commit500bcb6919887185f4f98763a36c5c243e11bae5 (patch)
treeedc4fcce6fb45a94307bd9c0adb693b8c176102b
parentadcd838e72854528dec15016b32b6e0bfa292fcd (diff)
downloadchocolate-doom-500bcb6919887185f4f98763a36c5c243e11bae5.tar.gz
chocolate-doom-500bcb6919887185f4f98763a36c5c243e11bae5.tar.bz2
chocolate-doom-500bcb6919887185f4f98763a36c5c243e11bae5.zip
Use key for confirming menu messages, not typed char.
Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1547
-rw-r--r--src/m_menu.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/m_menu.c b/src/m_menu.c
index 6809e6c0..1ced1d16 100644
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -1605,8 +1605,8 @@ boolean M_Responder (event_t* ev)
{
if (messageNeedsInput)
{
- if (ch != ' ' && ch != KEY_ESCAPE
- && ch != key_menu_confirm && ch != key_menu_abort)
+ if (key != ' ' && key != KEY_ESCAPE
+ && key != key_menu_confirm && key != key_menu_abort)
{
return false;
}
@@ -1615,7 +1615,7 @@ boolean M_Responder (event_t* ev)
menuactive = messageLastMenuActive;
messageToPrint = 0;
if (messageRoutine)
- messageRoutine(ch);
+ messageRoutine(key);
menuactive = false;
S_StartSound(NULL,sfx_swtchx);