ref: 25374dee58942b20a38f446074667e7dbb297b5a
parent: 20f405ec5416e5c543425fadc1068e5983cdd136
author: Simon Howard <[email protected]>
date: Fri Feb 3 16:46:55 EST 2012
Fix chat macros when vanilla_keyboard_mapping is turned off. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 2493
--- a/src/hu_stuff.c
+++ b/src/hu_stuff.c
@@ -649,11 +649,10 @@
}
else
{
- c = ev->data2;
// send a macro
if (altdown)
{
- c = c - '0';
+ c = ev->data1 - '0';
if (c > 9)
return false;
// fprintf(stderr, "got here\n");
@@ -675,6 +674,8 @@
}
else
{
+ c = ev->data2;
+
if (vanilla_keyboard_mapping)
{
if (shiftdown || (c >= 'a' && c <= 'z'))