From 7e9b0114d8edd4de3869b259d2ce7a358285453d Mon Sep 17 00:00:00 2001 From: Alyssa Milburn Date: Thu, 2 Feb 2012 12:40:25 +0100 Subject: HUGO: Fix keyHandler (noticed by Strangerke). --- engines/hugo/parser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/hugo') diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp index a0ad4c0986..4eaed6fecf 100644 --- a/engines/hugo/parser.cpp +++ b/engines/hugo/parser.cpp @@ -271,7 +271,7 @@ void Parser::keyHandler(Common::Event event) { status_t &gameStatus = _vm->getGameStatus(); uint16 nChar = event.kbd.keycode; - if ((event.kbd.hasFlags(Common::KBD_ALT)) || (event.kbd.hasFlags(Common::KBD_SCRL))) + if (event.kbd.flags & (Common::KBD_ALT | Common::KBD_SCRL)) return; if (event.kbd.hasFlags(Common::KBD_CTRL)) { -- cgit v1.2.3