remove debugging prints

This commit is contained in:
Seth Alves 2015-04-24 15:18:02 -07:00
parent 2a8fbeca32
commit 6e6793cbcc
5 changed files with 2 additions and 23 deletions

View file

@ -125,7 +125,7 @@ void RenderableModelEntityItem::render(RenderArgs* args) {
// XXX
if (drawAsModel
&& getSimulatorID() != myNodeID
&& getSimulatorID() != myNodeID // XXX
) {
remapTextures();
glPushMatrix();

View file

@ -620,8 +620,6 @@ int EntityItem::readEntityDataFromBuffer(const unsigned char* data, int bytesLef
_angularVelocity = saveAngularVelocity;
_gravity = saveGravity;
_acceleration = saveAcceleration;
} else {
qDebug() << "accepting update";
}
return bytesRead;

View file

@ -202,7 +202,6 @@ bool EntityMotionState::shouldSendUpdate(uint32_t simulationFrame) {
}
if (getShouldClaimSimulationOwnership()) {
qDebug() << "shouldSendUpdate due to claiming ownership";
return true;
}
@ -345,7 +344,6 @@ void EntityMotionState::sendUpdate(OctreeEditPacketSender* packetSender, uint32_
qCDebug(physics) << "EntityMotionState::sendUpdate()... calling queueEditEntityMessage()...";
#endif
qDebug() << "sending" << _body->isActive() << (_entity->getSimulatorID() == myNodeID);
entityPacketSender->queueEditEntityMessage(PacketTypeEntityAddOrEdit, id, properties);
} else {
#ifdef WANT_DEBUG

View file

@ -67,12 +67,7 @@ public:
quint8 getAccelerationNearlyGravityCount() { return _accelerationNearlyGravityCount; }
virtual EntityItem* getEntity() const { return _entity; }
virtual void setShouldClaimSimulationOwnership(bool value) {
if (value) {
qDebug() << "setShouldClaimSimulationOwnership to TRUE";
}
_shouldClaimSimulationOwnership = value;
}
virtual void setShouldClaimSimulationOwnership(bool value) { _shouldClaimSimulationOwnership = value; }
virtual bool getShouldClaimSimulationOwnership() { return _shouldClaimSimulationOwnership; }
protected:

View file

@ -393,22 +393,12 @@ void PhysicsEngine::doOwnershipInfection(const btCollisionObject* objectA, const
// (a && a->getShouldClaimSimulationOwnership()) ||
(objectA == characterCollisionObject)) {
if (bIsDynamic) {
qDebug() << "setShouldClaimSimulationOwnership(true) in doOwnershipInfection A"
<< (aIsDynamic && (entityA->getSimulatorID() == myNodeID))
<< (a && a->getShouldClaimSimulationOwnership())
<< (objectA == characterCollisionObject);
b->setShouldClaimSimulationOwnership(true);
}
} else if ((bIsDynamic && (entityB->getSimulatorID() == myNodeID)) ||
// (b && b->getShouldClaimSimulationOwnership()) ||
(objectB == characterCollisionObject)) {
if (aIsDynamic) {
qDebug() << "setShouldClaimSimulationOwnership(true) in doOwnershipInfection B"
<< (bIsDynamic && (entityB->getSimulatorID() == myNodeID))
<< (b && b->getShouldClaimSimulationOwnership())
<< (objectB == characterCollisionObject);
a->setShouldClaimSimulationOwnership(true);
}
}
@ -587,14 +577,12 @@ void PhysicsEngine::bump(EntityItem* bumpEntity) {
EntityItem* entityB = entityMotionStateB ? entityMotionStateB->getEntity() : NULL;
if (entityA && entityB) {
if (entityA == bumpEntity) {
qDebug() << "setShouldClaimSimulationOwnership(true) in bump";
entityMotionStateB->setShouldClaimSimulationOwnership(true);
if (!objectB->isActive()) {
objectB->setActivationState(ACTIVE_TAG);
}
}
if (entityB == bumpEntity) {
qDebug() << "setShouldClaimSimulationOwnership(true) in bump";
entityMotionStateA->setShouldClaimSimulationOwnership(true);
if (!objectA->isActive()) {
objectA->setActivationState(ACTIVE_TAG);