aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-08-31 21:03:19 -0400
committerPaul Gilbert2016-08-31 21:03:19 -0400
commit6b5e6a05abca828aa17c1aa4052c9e55a6246207 (patch)
tree3999fe527c40a0cd8c03ef1cbcacdabc2e5f2630
parentdd4fee37e35fab40076b6e9070a9a0ab987750a9 (diff)
downloadscummvm-rg350-6b5e6a05abca828aa17c1aa4052c9e55a6246207.tar.gz
scummvm-rg350-6b5e6a05abca828aa17c1aa4052c9e55a6246207.tar.bz2
scummvm-rg350-6b5e6a05abca828aa17c1aa4052c9e55a6246207.zip
TITANIC: Fix the isSpecialPressed method
-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