ZVISION: Fix puzzle disable condition check
This commit is contained in:
parent
23c1b50861
commit
628d6cb4ee
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue