mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-19 15:39:49 +00:00
flags no longer bitfield
This commit is contained in:
parent
aa29f86efe
commit
0723c32428
2 changed files with 9 additions and 10 deletions
|
@ -17,9 +17,9 @@ namespace MWWorld
|
|||
|
||||
mRegion = ESM::RefId::sEmpty; // Unimplemented for now
|
||||
|
||||
mFlags.hasWater = (cell.mCellFlags & ESM4::CELL_HasWater) != 0;
|
||||
mFlags.hasWater = cell.mCellFlags & ESM4::CELL_HasWater;
|
||||
mFlags.isExterior = !(cell.mCellFlags & ESM4::CELL_Interior);
|
||||
mFlags.isQuasiExterior = (cell.mCellFlags & ESM4::CELL_QuasiExt) != 0;
|
||||
mFlags.isQuasiExterior = cell.mCellFlags & ESM4::CELL_QuasiExt;
|
||||
mFlags.noSleep = false; // No such notion in ESM4
|
||||
|
||||
mCellId.mWorldspace = Misc::StringUtils::lowerCase(cell.mEditorId);
|
||||
|
@ -44,10 +44,10 @@ namespace MWWorld
|
|||
|
||||
mRegion = ESM::RefId::sEmpty; // Unimplemented for now
|
||||
|
||||
mFlags.hasWater = (cell.mData.mFlags & ESM::Cell::HasWater) != 0;
|
||||
mFlags.hasWater = cell.mData.mFlags & ESM::Cell::HasWater;
|
||||
mFlags.isExterior = !(cell.mData.mFlags & ESM::Cell::Interior);
|
||||
mFlags.isQuasiExterior = (cell.mData.mFlags & ESM::Cell::QuasiEx) != 0;
|
||||
mFlags.noSleep = (cell.mData.mFlags & ESM::Cell::NoSleep) != 0;
|
||||
mFlags.isQuasiExterior = cell.mData.mFlags & ESM::Cell::QuasiEx;
|
||||
mFlags.noSleep = cell.mData.mFlags & ESM::Cell::NoSleep;
|
||||
|
||||
mCellId = cell.getCellId();
|
||||
|
||||
|
|
|
@ -53,11 +53,10 @@ namespace MWWorld
|
|||
private:
|
||||
struct
|
||||
{
|
||||
uint8_t isExterior : 1;
|
||||
uint8_t isQuasiExterior : 1;
|
||||
uint8_t hasWater : 1;
|
||||
uint8_t noSleep : 1;
|
||||
uint8_t _free : 4;
|
||||
bool isExterior;
|
||||
bool isQuasiExterior;
|
||||
bool hasWater;
|
||||
bool noSleep;
|
||||
} mFlags;
|
||||
|
||||
osg::Vec2i mGridPos;
|
||||
|
|
Loading…
Reference in a new issue