mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 16:41:02 +02:00
cleanup spacing and comments
This commit is contained in:
parent
9aa3d31876
commit
5144a91d1f
1 changed files with 5 additions and 5 deletions
|
@ -451,8 +451,8 @@ int OctreeSendThread::packetDistributor(Node* node, OctreeQueryNode* nodeData, b
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the last node didn't fit, but we're in compressed mode, then we actually want to see if we can fit a
|
// If the last node didn't fit, but we're in compressed mode, then we actually want to see if we can fit a
|
||||||
// little bit more in this packet. To do this we
|
// little bit more in this packet. To do this we write into the packet, but don't send it yet, we'll
|
||||||
|
// keep attempting to write in compressed mode to add more compressed segments
|
||||||
|
|
||||||
// We only consider sending anything if there is something in the _packetData to send... But
|
// We only consider sending anything if there is something in the _packetData to send... But
|
||||||
// if bytesWritten == 0 it means either the subTree couldn't fit or we had an empty bag... Both cases
|
// if bytesWritten == 0 it means either the subTree couldn't fit or we had an empty bag... Both cases
|
||||||
|
@ -496,9 +496,9 @@ int OctreeSendThread::packetDistributor(Node* node, OctreeQueryNode* nodeData, b
|
||||||
|
|
||||||
int targetSize = MAX_OCTREE_PACKET_DATA_SIZE;
|
int targetSize = MAX_OCTREE_PACKET_DATA_SIZE;
|
||||||
if (sendNow) {
|
if (sendNow) {
|
||||||
if (forceDebugging) {
|
if (forceDebugging) {
|
||||||
qDebug("about to call handlePacketSend() .... line: %d -- sendNow = TRUE\n", __LINE__);
|
qDebug("about to call handlePacketSend() .... line: %d -- sendNow = TRUE\n", __LINE__);
|
||||||
}
|
}
|
||||||
packetsSentThisInterval += handlePacketSend(node, nodeData, trueBytesSent, truePacketsSent);
|
packetsSentThisInterval += handlePacketSend(node, nodeData, trueBytesSent, truePacketsSent);
|
||||||
if (wantCompression) {
|
if (wantCompression) {
|
||||||
targetSize = nodeData->getAvailable() - sizeof(OCTREE_PACKET_INTERNAL_SECTION_SIZE);
|
targetSize = nodeData->getAvailable() - sizeof(OCTREE_PACKET_INTERNAL_SECTION_SIZE);
|
||||||
|
|
Loading…
Reference in a new issue