[Scummvm-git-logs] scummvm master -> 6b5e6a05abca828aa17c1aa4052c9e55a6246207

dreammaster dreammaster at scummvm.org
Thu Sep 1 03:03:24 CEST 2016


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
6b5e6a05ab TITANIC: Fix the isSpecialPressed method


Commit: 6b5e6a05abca828aa17c1aa4052c9e55a6246207
    https://github.com/scummvm/scummvm/commit/6b5e6a05abca828aa17c1aa4052c9e55a6246207
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2016-08-31T21:03:19-04:00

Commit Message:
TITANIC: Fix the isSpecialPressed method

Changed paths:
    engines/titanic/main_game_window.h



diff --git a/engines/titanic/main_game_window.h b/engines/titanic/main_game_window.h
index 070f7df..530d579 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





More information about the Scummvm-git-logs mailing list