mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-30 00:41:24 +00:00
- everything compiles again (not tested yet.)
This commit is contained in:
parent
c3dc4f35be
commit
cfaafcede7
81 changed files with 1626 additions and 2252 deletions
|
@ -1395,9 +1395,15 @@ public:
|
|||
{
|
||||
}
|
||||
|
||||
BitArray(const BitArray & arr)
|
||||
BitArray(unsigned elem)
|
||||
: bytes((elem + 7) / 8, true)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
BitArray(const BitArray & arr)
|
||||
: bytes(arr.bytes)
|
||||
{
|
||||
bytes = arr.bytes;
|
||||
size = arr.size;
|
||||
}
|
||||
|
||||
|
@ -1409,8 +1415,8 @@ public:
|
|||
}
|
||||
|
||||
BitArray(BitArray && arr)
|
||||
: bytes(std::move(arr.bytes))
|
||||
{
|
||||
bytes = std::move(arr.bytes);
|
||||
size = arr.size;
|
||||
arr.size = 0;
|
||||
}
|
||||
|
@ -1428,9 +1434,10 @@ public:
|
|||
return !!(bytes[index >> 3] & (1 << (index & 7)));
|
||||
}
|
||||
|
||||
void Set(size_t index)
|
||||
void Set(size_t index, bool set = true)
|
||||
{
|
||||
bytes[index >> 3] |= (1 << (index & 7));
|
||||
if (!set) Clear(index);
|
||||
else bytes[index >> 3] |= (1 << (index & 7));
|
||||
}
|
||||
|
||||
void Clear(size_t index)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue