diff options
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r-- | engines/xeen/scripts.cpp | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp index ea4fc1cc06..a5984e3373 100644 --- a/engines/xeen/scripts.cpp +++ b/engines/xeen/scripts.cpp @@ -1478,13 +1478,7 @@ bool Scripts::ifProc(int action, uint32 mask, int mode, int charIndex) { } } } else { - int baseFlag = 8 * (6 + mask); - for (int idx = 0; idx < 8; ++idx) { - if (party._gameFlags[0][baseFlag + idx]) { - v = mask; - break; - } - } + error("Invalid id"); } break; case 25: @@ -1694,8 +1688,8 @@ bool Scripts::ifProc(int action, uint32 mask, int mode, int charIndex) { break; case 104: // Get value of quest flag - v = party._quests[mask + (_vm->_files->_isDarkCc ? 30 : 0)] ? - mask : 0xffffffff; + v = (_vm->_files->_isDarkCc ? party._quests[1][mask - 2] : + party._quests[0][mask]) ? mask : 0xffffffff; break; case 105: // Test number of Megacredits in party. Only used by King's Engineer in Castle Burlock |