diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-05-11 06:46:23 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-05-11 06:46:23 -0600 |
commit | 53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82 (patch) | |
tree | ca79591ac59d4f7bd02eb55e52d6754f8eca5093 /src | |
parent | ebefed376b4858e8638f97cf36e95f6e8c047f24 (diff) | |
download | mana-53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82.tar.gz mana-53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82.tar.bz2 mana-53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82.tar.xz mana-53ba5a7a61ccb0c3c1bda91fafa372d0966dcc82.zip |
Allow emote and ignore keys to overlap
Diffstat (limited to 'src')
-rw-r--r-- | src/keyboardconfig.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp index efb8f189..ff05d75b 100644 --- a/src/keyboardconfig.cpp +++ b/src/keyboardconfig.cpp @@ -153,10 +153,13 @@ bool KeyboardConfig::hasConflicts() { for (j = i, j++; j < KEY_TOTAL; j++) { - // Allow for item shortcut and emote keys to overlap, but no other keys + // Allow for item shortcut and emote keys to overlap + // as well as emote and ignore keys, but no other keys if (!((((i >= KEY_SHORTCUT_1) && (i <= KEY_SHORTCUT_12)) && ((j >= KEY_EMOTE_1) && (j <= KEY_EMOTE_12))) || - ((i == KEY_TOGGLE_CHAT) && (j == KEY_OK))) && + ((i == KEY_TOGGLE_CHAT) && (j == KEY_OK)) || + ((i == KEY_EMOTE) && + (j == KEY_IGNORE_INPUT_1 || j == KEY_IGNORE_INPUT_2))) && (mKey[i].value == mKey[j].value) ) { |