[Orxonox-commit 3898] r8572 - code/branches/spacerace/src/modules/objects/triggers
dafrick at orxonox.net
dafrick at orxonox.net
Wed May 25 18:08:06 CEST 2011
Author: dafrick
Date: 2011-05-25 18:08:06 +0200 (Wed, 25 May 2011)
New Revision: 8572
Modified:
code/branches/spacerace/src/modules/objects/triggers/Trigger.cc
Log:
Adding some useful debug output.
Modified: code/branches/spacerace/src/modules/objects/triggers/Trigger.cc
===================================================================
--- code/branches/spacerace/src/modules/objects/triggers/Trigger.cc 2011-05-25 16:07:35 UTC (rev 8571)
+++ code/branches/spacerace/src/modules/objects/triggers/Trigger.cc 2011-05-25 16:08:06 UTC (rev 8572)
@@ -117,7 +117,7 @@
if (this->remainingTime_ > 0.0)
{
this->remainingTime_ -= dt;
- // only increase when acctually waiting for a state in the queue
+ // only increase when actually waiting for a state in the queue
if (this->timeSinceLastEvent_ >= 0.0)
this->timeSinceLastEvent_ += dt;
}
@@ -128,6 +128,7 @@
char newState = this->stateChanges_.front().second;
this->bTriggered_ = (newState & 0x1);
this->bActive_ = newState & 2;
+ COUT(4) << this->getIdentifier()->getName() << " '" << this->getName() << "' (&" << this << ") changed state. active: " << this->bActive_ << ", triggered: " << this->bTriggered_ << "." << std::endl;
this->triggered(this->bActive_);
this->stateChanges_.pop();
if (this->stateChanges_.size() != 0)
More information about the Orxonox-commit
mailing list