allow equal for piggyback check in OctreeSendThread

This commit is contained in:
Stephen Birarda 2015-07-07 16:21:14 -07:00
parent 6a76f858d8
commit 631c745784

View file

@ -147,7 +147,7 @@ int OctreeSendThread::handlePacketSend(OctreeQueryNode* nodeData, int& trueBytes
NLPacket& statsPacket = nodeData->stats.getStatsMessage();
// If the size of the stats message and the octree message will fit in a packet, then piggyback them
if (nodeData->getPacket()->getSizeWithHeader() < statsPacket->bytesAvailable()) {
if (nodeData->getPacket()->getSizeWithHeader() <= statsPacket->bytesAvailable()) {
// copy octree message to back of stats message
statsPacket->write(nodeData->getPacket()->getData(), nodeData->getPacket()->getSizeWithHeader());