From 6b5e6a05abca828aa17c1aa4052c9e55a6246207 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 31 Aug 2016 21:03:19 -0400 Subject: TITANIC: Fix the isSpecialPressed method --- engines/titanic/main_game_window.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/engines/titanic/main_game_window.h b/engines/titanic/main_game_window.h index 070f7df69b..530d5796f4 100644 --- a/engines/titanic/main_game_window.h +++ b/engines/titanic/main_game_window.h @@ -131,7 +131,9 @@ public: /* * Return whether a given special key is currently pressed */ - bool isSpecialPressed(SpecialButtons btn) const { return _specialButtons; } + bool isSpecialPressed(SpecialButtons btn) const { + return (_specialButtons & btn) != 0; + } /** * Returns the bitset of the currently pressed special buttons -- cgit v1.2.3