diff options
author | Simon Howard | 2012-02-03 21:46:55 +0000 |
---|---|---|
committer | Simon Howard | 2012-02-03 21:46:55 +0000 |
commit | 25374dee58942b20a38f446074667e7dbb297b5a (patch) | |
tree | 7572887878737005bb791f77bd7f3ff04a24630a /src | |
parent | 20f405ec5416e5c543425fadc1068e5983cdd136 (diff) | |
download | chocolate-doom-25374dee58942b20a38f446074667e7dbb297b5a.tar.gz chocolate-doom-25374dee58942b20a38f446074667e7dbb297b5a.tar.bz2 chocolate-doom-25374dee58942b20a38f446074667e7dbb297b5a.zip |
Fix chat macros when vanilla_keyboard_mapping is turned off.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2493
Diffstat (limited to 'src')
-rw-r--r-- | src/hu_stuff.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hu_stuff.c b/src/hu_stuff.c index afe3974c..8547f34a 100644 --- a/src/hu_stuff.c +++ b/src/hu_stuff.c @@ -649,11 +649,10 @@ boolean HU_Responder(event_t *ev) } 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 @@ boolean HU_Responder(event_t *ev) } else { + c = ev->data2; + if (vanilla_keyboard_mapping) { if (shiftdown || (c >= 'a' && c <= 'z')) |