removed bogus code that related to server crash

This commit is contained in:
ZappoMan 2013-07-17 11:52:50 -07:00
parent 9e9b379d66
commit 74eaf72d53

View file

@ -1011,12 +1011,6 @@ int VoxelTree::encodeTreeBitstream(VoxelNode* node, unsigned char* outputBuffer,
// How many bytes have we written so far at this level;
int bytesWritten = 0;
// These two cases should not ever happen... but if they do, we don't want to crash.
if (!node || !node->getOctalCode()) {
qDebug("VoxelTree::encodeTreeBitstream() BAD VoxelNode! Bailing!");
return bytesWritten;
}
// If we're at a node that is out of view, then we can return, because no nodes below us will be in view!
if (params.viewFrustum && !node->isInView(*params.viewFrustum)) {
return bytesWritten;