mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:44:01 +02:00
removed bogus code that related to server crash
This commit is contained in:
parent
9e9b379d66
commit
74eaf72d53
1 changed files with 0 additions and 6 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue