This commit is contained in:
ZappoMan 2013-07-29 16:17:57 -07:00
parent 69bae24d82
commit 95e6fb16d0
2 changed files with 7 additions and 4 deletions

View file

@ -24,8 +24,6 @@
#include <arpa/inet.h>
#endif
// NODE_TYPE_VOXEL_SERVER - removed!
const char SOLO_NODE_TYPES[2] = {
NODE_TYPE_AVATAR_MIXER,
NODE_TYPE_AUDIO_MIXER

View file

@ -305,8 +305,13 @@ int VoxelTree::readNodeData(VoxelNode* destinationNode, unsigned char* nodeData,
childIndex++;
}
if (false && includeExistsBits) {
// Here's where we need to handle the idea of multiple voxel servers. If we have multiple voxel
// servers, then we don't want to "honor" exists bits for portions of the tree that the server in
// question is responsible for. Maybe we can handle this in the server and not "remove" bits for
// portions of the server that the server is not responsible for.... or maybe we need to let the client
// manage this concept.
const bool singleVoxelServer = true;
if (singleVoxelServer && includeExistsBits) {
for (int i = 0; i < NUMBER_OF_CHILDREN; i++) {
// now also check the childrenInTreeMask, if the mask is missing the bit, then it means we need to delete this child
// subtree/node, because it shouldn't actually exist in the tree.