cleanup includeThisEntity check

This commit is contained in:
Stephen Birarda 2017-01-24 16:41:20 -08:00
parent 543d0ce77e
commit 67a3d97f81

View file

@ -327,9 +327,8 @@ OctreeElement::AppendState EntityTreeElement::appendElementData(OctreePacketData
}
}
if (hadElementExtraData) {
includeThisEntity = includeThisEntity &&
entityTreeElementExtraEncodeData->entities.contains(entity->getEntityItemID());
if (includeThisEntity && hadElementExtraData) {
includeThisEntity = entityTreeElementExtraEncodeData->entities.contains(entity->getEntityItemID());
}
// we only check the bounds against our frustum and LOD if the query has asked us to check against the frustum