SCI32: Actually use the BitmapFlags enum

This commit is contained in:
Colin Snover 2016-03-07 22:57:46 -06:00
parent 0235a84b90
commit 82be9326f7

View File

@ -154,15 +154,15 @@ public:
}
inline bool getRemap() const {
return READ_SCI11ENDIAN_UINT16(_bitmap + 10) & 2;
return READ_SCI11ENDIAN_UINT16(_bitmap + 10) & kBitmapRemap;
}
inline void setRemap(const bool remap) {
uint16 flags = READ_SCI11ENDIAN_UINT16(_bitmap + 10);
if (remap) {
flags |= 2;
flags |= kBitmapRemap;
} else {
flags &= ~2;
flags &= ~kBitmapRemap;
}
WRITE_SCI11ENDIAN_UINT16(_bitmap + 10, flags);
}