Skip to content

Commit

Permalink
TITANIC: Fix the isSpecialPressed method
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 1, 2016
1 parent dd4fee3 commit 6b5e6a0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion engines/titanic/main_game_window.h
Expand Up @@ -131,7 +131,9 @@ class CMainGameWindow : public CEventTarget {
/*
* 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
Expand Down

0 comments on commit 6b5e6a0

Please sign in to comment.