mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-11 20:26:31 +00:00
ZVISION: Force & operator to have precedence over == operator
This commit is contained in:
parent
6ee93ad5c2
commit
d26c814d1e
@ -265,7 +265,7 @@ void ScriptManager::changeLocationIntern() {
|
|||||||
// Add all the local puzzles to the queue to be checked
|
// Add all the local puzzles to the queue to be checked
|
||||||
for (Common::List<Puzzle>::iterator iter = _activePuzzles.begin(); iter != _activePuzzles.end(); iter++) {
|
for (Common::List<Puzzle>::iterator iter = _activePuzzles.begin(); iter != _activePuzzles.end(); iter++) {
|
||||||
// Reset any Puzzles that have the flag ONCE_PER_INST
|
// Reset any Puzzles that have the flag ONCE_PER_INST
|
||||||
if ((*iter).flags & Puzzle::ONCE_PER_INST == Puzzle::ONCE_PER_INST) {
|
if (((*iter).flags & Puzzle::ONCE_PER_INST) == Puzzle::ONCE_PER_INST) {
|
||||||
setStateValue((*iter).key, 0);
|
setStateValue((*iter).key, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -275,7 +275,7 @@ void ScriptManager::changeLocationIntern() {
|
|||||||
// Add all the global puzzles to the queue to be checked
|
// Add all the global puzzles to the queue to be checked
|
||||||
for (Common::List<Puzzle>::iterator iter = _globalPuzzles.begin(); iter != _globalPuzzles.end(); iter++) {
|
for (Common::List<Puzzle>::iterator iter = _globalPuzzles.begin(); iter != _globalPuzzles.end(); iter++) {
|
||||||
// Reset any Puzzles that have the flag ONCE_PER_INST
|
// Reset any Puzzles that have the flag ONCE_PER_INST
|
||||||
if ((*iter).flags & Puzzle::ONCE_PER_INST == Puzzle::ONCE_PER_INST) {
|
if (((*iter).flags & Puzzle::ONCE_PER_INST) == Puzzle::ONCE_PER_INST) {
|
||||||
setStateValue((*iter).key, 0);
|
setStateValue((*iter).key, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user