mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
removed some debugging
This commit is contained in:
parent
28c5d5b7bf
commit
bc80862825
3 changed files with 8 additions and 7 deletions
|
@ -42,7 +42,7 @@ void OctreeInboundPacketProcessor::resetStats() {
|
|||
void OctreeInboundPacketProcessor::processPacket(const HifiSockAddr& senderSockAddr,
|
||||
unsigned char* packetData, ssize_t packetLength) {
|
||||
|
||||
bool debugProcessPacket = true; //_myServer->wantsVerboseDebug();
|
||||
bool debugProcessPacket = _myServer->wantsVerboseDebug();
|
||||
|
||||
if (debugProcessPacket) {
|
||||
printf("OctreeInboundPacketProcessor::processPacket() packetData=%p packetLength=%ld\n", packetData, packetLength);
|
||||
|
|
|
@ -40,7 +40,6 @@ void ParticleServer::beforeRun() {
|
|||
}
|
||||
|
||||
void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
|
||||
printf("ParticleServer::particleCreated(newParticle.creatorTokenID=%u, senderNode)\n",newParticle.getCreatorTokenID());
|
||||
unsigned char outputBuffer[MAX_PACKET_SIZE];
|
||||
unsigned char* copyAt = outputBuffer;
|
||||
|
||||
|
@ -63,5 +62,4 @@ void ParticleServer::particleCreated(const Particle& newParticle, Node* node) {
|
|||
NodeList::getInstance()->getNodeSocket().writeDatagram((char*) outputBuffer, packetLength,
|
||||
node->getActiveSocket()->getAddress(),
|
||||
node->getActiveSocket()->getPort());
|
||||
printf("ParticleServer::particleCreated() called writeDatagram() packetLength=%d\n", packetLength);
|
||||
}
|
||||
|
|
|
@ -236,10 +236,13 @@ Particle Particle::fromEditPacket(unsigned char* data, int length, int& processe
|
|||
dataAt += scriptLength;
|
||||
processedBytes += scriptLength;
|
||||
|
||||
printf("Particle::fromEditPacket()...\n");
|
||||
printf(" Particle id in packet:%u\n", editID);
|
||||
newParticle.debugDump();
|
||||
|
||||
const bool wantDebugging = false;
|
||||
if (wantDebugging) {
|
||||
printf("Particle::fromEditPacket()...\n");
|
||||
printf(" Particle id in packet:%u\n", editID);
|
||||
newParticle.debugDump();
|
||||
}
|
||||
|
||||
return newParticle;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue