aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorMartin Kiewitz2016-02-02 11:43:58 +0100
committerMartin Kiewitz2016-02-02 11:43:58 +0100
commitbc0dd6f8214201a4b2220c72702d4f3aff061f0d (patch)
tree9924fa82e9df91cfe8094f90b8052e3ec9a27f59 /engines/sci
parent7aeadba863ed1893fa6095008d35b32ce5117749 (diff)
downloadscummvm-rg350-bc0dd6f8214201a4b2220c72702d4f3aff061f0d.tar.gz
scummvm-rg350-bc0dd6f8214201a4b2220c72702d4f3aff061f0d.tar.bz2
scummvm-rg350-bc0dd6f8214201a4b2220c72702d4f3aff061f0d.zip
SCI: Fix regression of previous keycode commit
7aeadba863ed1893fa6095008d35b32ce5117749 Thanks LordHoto for spotting it
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/event.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/event.cpp b/engines/sci/event.cpp
index 8a5d67d935..1f7cc014db 100644
--- a/engines/sci/event.cpp
+++ b/engines/sci/event.cpp
@@ -268,7 +268,7 @@ SciEvent EventManager::getScummVMEvent() {
// SCI_K_SHIFT_F1 == 84 << 8
input.character = SCI_KEY_F1 + ((scummVMKeycode - Common::KEYCODE_F1)<<8);
if (ourModifiers & Common::KBD_SHIFT)
- input.character = scummVMKeycode + 0x1900;
+ input.character = input.character + 0x1900;
} else {
// Special keys that need conversion
for (int i = 0; i < ARRAYSIZE(keyMappings); i++) {