ZVISION: Remove superfluous check

This commit is contained in:
Filippos Karapetis 2015-01-21 01:41:35 +02:00
parent 5a6f711d07
commit 1330cb7c99

View File

@ -210,7 +210,7 @@ void ScriptManager::updateControls(uint deltaTimeMillis) {
bool ScriptManager::checkPuzzleCriteria(Puzzle *puzzle, uint counter) {
// Check if the puzzle is already finished
// Also check that the puzzle isn't disabled
if (getStateValue(puzzle->key) == 1 || (getStateFlag(puzzle->key) & Puzzle::DISABLED) == Puzzle::DISABLED) {
if (getStateValue(puzzle->key) == 1 || (getStateFlag(puzzle->key) & Puzzle::DISABLED)) {
return true;
}