[Orxonox-commit 2176] r6892 - code/branches/ppspickups3/src/orxonox/worldentities/pawns
ebeier at orxonox.net
ebeier at orxonox.net
Mon May 10 16:41:26 CEST 2010
Author: ebeier
Date: 2010-05-10 16:41:26 +0200 (Mon, 10 May 2010)
New Revision: 6892
Modified:
code/branches/ppspickups3/src/orxonox/worldentities/pawns/Pawn.cc
Log:
inserted cout for troubleshooting
Modified: code/branches/ppspickups3/src/orxonox/worldentities/pawns/Pawn.cc
===================================================================
--- code/branches/ppspickups3/src/orxonox/worldentities/pawns/Pawn.cc 2010-05-10 14:40:44 UTC (rev 6891)
+++ code/branches/ppspickups3/src/orxonox/worldentities/pawns/Pawn.cc 2010-05-10 14:41:26 UTC (rev 6892)
@@ -173,6 +173,7 @@
// In case the shield can not take all the shield damage.
if (shielddamage > this->getShieldHealth())
{
+ COUT(1) << "the shield is too weak to take its share of the damage!" << std::endl;
healthdamage += shielddamage-this->getShieldHealth();
this->setShieldHealth(0);
}
@@ -182,6 +183,7 @@
if (this->getShieldHealth() > 0)
{
this->setShieldHealth(this->shieldHealth_ - shielddamage);
+ COUT(1) << "the shield takes its share of the damage and is left with " << this->getShieldHealth() << std::endl;
}
this->lastHitOriginator_ = originator;
More information about the Orxonox-commit
mailing list