ZVISION: Remove superfluous check
This commit is contained in:
parent
5a6f711d07
commit
1330cb7c99
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ void ScriptManager::updateControls(uint deltaTimeMillis) {
|
||||||
bool ScriptManager::checkPuzzleCriteria(Puzzle *puzzle, uint counter) {
|
bool ScriptManager::checkPuzzleCriteria(Puzzle *puzzle, uint counter) {
|
||||||
// Check if the puzzle is already finished
|
// Check if the puzzle is already finished
|
||||||
// Also check that the puzzle isn't disabled
|
// 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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue