aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/main_game_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'engines/titanic/main_game_window.h')
-rw-r--r--engines/titanic/main_game_window.h4
1 files changed, 3 insertions, 1 deletions
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