mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-14 03:06:35 +02:00
different entity flags for domain/avatar
(cherry picked from commit 7054188f21
)
This commit is contained in:
parent
b5a2642b6a
commit
43bc184254
1 changed files with 6 additions and 1 deletions
|
@ -67,7 +67,12 @@ public:
|
|||
|
||||
// Helpers for RayPickManager
|
||||
Flags getEntityFlags() const {
|
||||
unsigned int toReturn = getBitMask(DOMAIN_ENTITIES) || getBitMask(AVATAR_ENTITIES);
|
||||
unsigned int toReturn = 0;
|
||||
for (int i = DOMAIN_ENTITIES; i < LOCAL_ENTITIES; i++) {
|
||||
if (_flags[i]) {
|
||||
toReturn |= getBitMask(FlagBit(i));
|
||||
}
|
||||
}
|
||||
for (int i = HUD + 1; i < NUM_FLAGS; i++) {
|
||||
if (_flags[i]) {
|
||||
toReturn |= getBitMask(FlagBit(i));
|
||||
|
|
Loading…
Reference in a new issue