mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
simpler logic flow
This commit is contained in:
parent
e114fa1b82
commit
7597088c7c
1 changed files with 4 additions and 4 deletions
|
@ -432,11 +432,11 @@ OctreeElement::AppendState EntityTreeElement::appendElementData(OctreePacketData
|
||||||
// and include the entity in our final count of entities
|
// and include the entity in our final count of entities
|
||||||
packetData->endLevel(entityLevel);
|
packetData->endLevel(entityLevel);
|
||||||
actualNumberOfEntities++;
|
actualNumberOfEntities++;
|
||||||
}
|
|
||||||
|
|
||||||
// If the entity item got completely appended, then we can remove it from the extra encode data
|
// If the entity item got completely appended, then we can remove it from the extra encode data
|
||||||
if (appendEntityState == OctreeElement::COMPLETED) {
|
if (appendEntityState == OctreeElement::COMPLETED) {
|
||||||
entityTreeElementExtraEncodeData->entities.remove(entity->getEntityItemID());
|
entityTreeElementExtraEncodeData->entities.remove(entity->getEntityItemID());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// If any part of the entity items didn't fit, then the element is considered partial
|
// If any part of the entity items didn't fit, then the element is considered partial
|
||||||
|
|
Loading…
Reference in a new issue