tweaks and cleanup

This commit is contained in:
ZappoMan 2013-11-23 14:07:01 -08:00
parent ae5d5324c1
commit 29522d1e50
2 changed files with 3 additions and 5 deletions

View file

@ -13,8 +13,6 @@
#include <cstdio>
#include "VoxelSendThread.h"
const int UNCOMPRESSED_SIZE_MULTIPLE = 20;
VoxelNodeData::VoxelNodeData(Node* owningNode) :
VoxelQuery(owningNode),
_viewSent(false),
@ -47,7 +45,7 @@ void VoxelNodeData::initializeVoxelSendThread(VoxelServer* voxelServer) {
_voxelSendThread->initialize(true);
}
bool VoxelNodeData::packetIsDuplicate() {
bool VoxelNodeData::packetIsDuplicate() const {
if (_lastVoxelPacketLength == getPacketLength()) {
return memcmp(_lastVoxelPacket, getPacket(), getPacketLength()) == 0;
}

View file

@ -36,10 +36,10 @@ public:
bool isPacketWaiting() const { return _voxelPacketWaiting; }
bool packetIsDuplicate();
bool packetIsDuplicate() const;
bool shouldSuppressDuplicatePacket();
int getAvailable() const { return MAX_VOXEL_PACKET_SIZE - getPacketLength(); }
int getAvailable() const { return _voxelPacketAvailableBytes; }
int getMaxSearchLevel() const { return _maxSearchLevel; };
void resetMaxSearchLevel() { _maxSearchLevel = 1; };
void incrementMaxSearchLevel() { _maxSearchLevel++; };