- 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:
Christoph Oelckers 2021-11-11 17:26:45 +01:00
parent 269f2580b9
commit 1bbbeb8f4c
7 changed files with 47 additions and 93 deletions

View file

@ -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);