aboutsummaryrefslogtreecommitdiff
path: root/engines/xeen/scripts.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2017-12-28 23:36:29 -0500
committerPaul Gilbert2017-12-28 23:36:29 -0500
commita37b0e8181f055d4778c53aa873816af4349aa9d (patch)
treedfbf8025f2ade4c07f5770b9101f1d181d275b7d /engines/xeen/scripts.cpp
parent26c096d39df27e8460af6ff8c28f381ca90e0422 (diff)
downloadscummvm-rg350-a37b0e8181f055d4778c53aa873816af4349aa9d.tar.gz
scummvm-rg350-a37b0e8181f055d4778c53aa873816af4349aa9d.tar.bz2
scummvm-rg350-a37b0e8181f055d4778c53aa873816af4349aa9d.zip
XEEN: Change _gameFlags to it's own class
Byte 6 of the flags data, for flags 48 to 55, is directly used in several places. I didn't think it was needed, but turns out it is. So I've had to refactor the bool array I had previously to have this as a bitset, so byte 6 can be accessed
Diffstat (limited to 'engines/xeen/scripts.cpp')
-rw-r--r--engines/xeen/scripts.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/xeen/scripts.cpp b/engines/xeen/scripts.cpp
index 75338eb3f8..b1cfa71585 100644
--- a/engines/xeen/scripts.cpp
+++ b/engines/xeen/scripts.cpp
@@ -1541,7 +1541,7 @@ bool Scripts::ifProc(int action, uint32 val, int mode, int charIndex) {
if (files._isDarkCc)
val += 256;
assert(val < 512);
- v = party._gameFlags[val / 256][val % 256] ? val : 0xffffffff;
+ v = party._gameFlags.get(val) ? val : 0xffffffff;
break;
case 21:
// Scans inventories for given item number