remove useless additional includeThisEntity sets

This commit is contained in:
Stephen Birarda 2017-01-24 17:35:45 -08:00
parent e511b6e84c
commit 586c3512a7

View file

@ -309,16 +309,12 @@ OctreeElement::AppendState EntityTreeElement::appendElementData(OctreePacketData
bool entityMatchesFilters = entity->matchesJSONFilters(jsonFilters);
if (entityMatchesFilters) {
// we should include this entity unless it has already been excluded
includeThisEntity = true;
// make sure this entity is in the set of entities sent last frame
entityNodeData->insertEntitySentLastFrame(entity->getID());
} else {
// we might include this entity if it matched in the previous frame
if (entityNodeData->sentEntityLastFrame(entity->getID())) {
includeThisEntity = true;
entityNodeData->removeEntitySentLastFrame(entity->getID());
} else {