mirror of
https://github.com/ZDoom/Raze.git
synced 2025-05-29 16:31:43 +00:00
- Blood: reworked GetClosestSpriteSectors to use dynamic arrays, deleted unused GetClosestSectors.
# Conflicts: # source/games/blood/src/aibeast.cpp # Conflicts: # source/games/blood/src/aibeast.cpp # source/games/blood/src/gameutil.h
This commit is contained in:
parent
269f2580b9
commit
1bbbeb8f4c
7 changed files with 47 additions and 93 deletions
|
@ -1683,6 +1683,12 @@ public:
|
|||
return !!(bytes[index >> 3] & (1 << (index & 7)));
|
||||
}
|
||||
|
||||
// for when array syntax cannot be used.
|
||||
bool Check(size_t index) const
|
||||
{
|
||||
return !!(bytes[index >> 3] & (1 << (index & 7)));
|
||||
}
|
||||
|
||||
void Set(size_t index, bool set = true)
|
||||
{
|
||||
if (!set) Clear(index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue