[Orxonox-commit 3783] r8463 - code/trunk/src/orxonox/interfaces
dafrick at orxonox.net
dafrick at orxonox.net
Thu May 12 15:40:05 CEST 2011
Author: dafrick
Date: 2011-05-12 15:40:05 +0200 (Thu, 12 May 2011)
New Revision: 8463
Modified:
code/trunk/src/orxonox/interfaces/Pickupable.cc
Log:
Adjusting some debug output with the added bonus of no more Segfaults when picking up a pickup.
Modified: code/trunk/src/orxonox/interfaces/Pickupable.cc
===================================================================
--- code/trunk/src/orxonox/interfaces/Pickupable.cc 2011-05-12 12:48:53 UTC (rev 8462)
+++ code/trunk/src/orxonox/interfaces/Pickupable.cc 2011-05-12 13:40:05 UTC (rev 8463)
@@ -125,7 +125,7 @@
if((!this->isUsable() && used) || (!this->isUnusable() && !used)) // If either the Pickupable is requested to be used but it is not usable or the Pickupable is requested to be unused, while it is not unusable.
return false;
- COUT(4) << "Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ") set to used " << used << "." << std::endl;
+ COUT(4) << "Pickupable (&" << this << ") set to used " << used << "." << std::endl;
this->used_ = used;
@@ -220,12 +220,12 @@
if(!this->setCarrier(carrier))
{
- COUT(3) << "A Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ") was trying to be added to a PickupCarrier, but was already present." << std::endl;
+ COUT(3) << "A Pickupable (&" << this << ") was trying to be added to a PickupCarrier, but was already present." << std::endl;
return false;
}
this->setPickedUp(true);
- COUT(4) << "Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ") got picked up by a PickupCarrier (&" << carrier << ")." << std::endl;
+ COUT(4) << "Pickupable (&" << this << ") got picked up by a PickupCarrier (&" << carrier << ")." << std::endl;
return true;
}
@@ -246,7 +246,7 @@
if(!this->getCarrier()->removePickup(this)) //TODO Shouldn't this be a little later?
COUT(2) << "Pickupable (&" << this << ", " << this->getIdentifier()->getName() << ") is being dropped, but it was not present in the PickupCarriers list of pickups." << std::endl;
- COUT(4) << "Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ") got dropped up by a PickupCarrier (&" << this->getCarrier() << ")." << std::endl;
+ COUT(4) << "Pickupable (&" << this << ") got dropped up by a PickupCarrier (&" << this->getCarrier() << ")." << std::endl;
this->setUsed(false);
this->setPickedUp(false);
@@ -275,7 +275,7 @@
if(this->pickedUp_ == pickedUp) // If the picked up status has not changed.
return false;
- COUT(4) << "Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ") set to pickedUp " << pickedUp << "." << std::endl;
+ COUT(4) << "Pickupable (&" << this << ") set to pickedUp " << pickedUp << "." << std::endl;
this->pickedUp_ = pickedUp;
@@ -304,7 +304,7 @@
if(this->carrier_ == carrier) // If the PickupCarrier doesn't change.
return false;
- COUT(4) << "Pickupable (" << this->getIdentifier()->getName() << ") (&" << this << ") changed Carrier (& " << carrier << ")." << std::endl;
+ COUT(4) << "Pickupable (&" << this << ") changed Carrier (& " << carrier << ")." << std::endl;
if(carrier != NULL && tell)
{
More information about the Orxonox-commit
mailing list