[Orxonox-commit 1395] r6113 - code/branches/presentation2/src/orxonox/controllers
scheusso at orxonox.net
scheusso at orxonox.net
Sat Nov 21 01:16:35 CET 2009
Author: scheusso
Date: 2009-11-21 01:16:35 +0100 (Sat, 21 Nov 2009)
New Revision: 6113
Modified:
code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
Log:
NHC creator hack is now not so hacky anymore ;)
Modified: code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc
===================================================================
--- code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc 2009-11-20 23:57:06 UTC (rev 6112)
+++ code/branches/presentation2/src/orxonox/controllers/NewHumanController.cc 2009-11-21 00:16:35 UTC (rev 6113)
@@ -160,8 +160,8 @@
WorldEntity* wePtr = dynamic_cast<WorldEntity*>(itr->movable->getUserObject());
if (wePtr)
{
- BaseObject* creator = wePtr->getCreator();
- if (this->targetMask_.isExcluded(creator->getIdentifier()))
+ BaseObject* parent = wePtr->getParent();
+ if (this->targetMask_.isExcluded(parent->getIdentifier()))
continue;
}
More information about the Orxonox-commit
mailing list