ZVISION: Fix puzzle disable condition check

This commit is contained in:
Marisa-Chan 2014-07-05 17:15:04 +00:00
parent 23c1b50861
commit 628d6cb4ee

View file

@ -158,8 +158,7 @@ void ScriptManager::updateControls(uint deltaTimeMillis) {
void 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) == 0) {
if (getStateValue(puzzle->key) == 1 || (getStateFlag(puzzle->key) & Puzzle::DISABLED) == Puzzle::DISABLED) {
return;
}