aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJohannes Schickel2011-12-30 01:52:41 +0100
committerJohannes Schickel2011-12-30 01:53:01 +0100
commitadb53422471386b4eb3551fe15a489bcd88b6571 (patch)
tree517fa807173df86cf10c45e4115b3e33c58a30d4 /engines
parentd55ce3626800cfa316bb90a1e2fcc0b3d5dbe203 (diff)
downloadscummvm-rg350-adb53422471386b4eb3551fe15a489bcd88b6571.tar.gz
scummvm-rg350-adb53422471386b4eb3551fe15a489bcd88b6571.tar.bz2
scummvm-rg350-adb53422471386b4eb3551fe15a489bcd88b6571.zip
TINSEL: Take advantage of KeyState::hasFlags.
Diffstat (limited to 'engines')
-rw-r--r--engines/tinsel/tinsel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tinsel/tinsel.cpp b/engines/tinsel/tinsel.cpp
index 635845ab26..cd0f9b9fa4 100644
--- a/engines/tinsel/tinsel.cpp
+++ b/engines/tinsel/tinsel.cpp
@@ -1177,7 +1177,7 @@ void TinselEngine::ProcessKeyEvent(const Common::Event &event) {
switch (event.kbd.keycode) {
case Common::KEYCODE_d:
// Checks for CTRL flag, ignoring all the sticky flags
- if ((Common::KBD_CTRL == (event.kbd.flags & ~(Common::KBD_NUM|Common::KBD_CAPS|Common::KBD_SCRL))) && (event.type == Common::EVENT_KEYDOWN)) {
+ if (event.kbd.hasFlags(Common::KBD_CTRL) && event.type == Common::EVENT_KEYDOWN) {
// Activate the debugger
assert(_console);
_console->attach();