ref: 500bcb6919887185f4f98763a36c5c243e11bae5
parent: adcd838e72854528dec15016b32b6e0bfa292fcd
author: Simon Howard <[email protected]>
date: Wed Jun 3 19:20:06 EDT 2009
Use key for confirming menu messages, not typed char. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1547
--- a/src/m_menu.c
+++ b/src/m_menu.c
@@ -1605,8 +1605,8 @@
{
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 @@
menuactive = messageLastMenuActive;
messageToPrint = 0;
if (messageRoutine)
- messageRoutine(ch);
+ messageRoutine(key);
menuactive = false;
S_StartSound(NULL,sfx_swtchx);