Changeset 10718 in orxonox.OLD for branches/presentation/src/world_entities/world_entity.cc
- Timestamp:
- Jun 18, 2007, 5:06:59 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/world_entity.cc
r10714 r10718 990 990 void WorldEntity::hit(float damage, WorldEntity* killer) 991 991 { 992 PRINTF(0)("TESTS: %i %i %i\n", (forwardDamageToParent), (this->getParent() != NullParent::getNullParent()), (this->getParent()->isA( WorldEntity::staticClassID() )));993 992 if ( forwardDamageToParent && this->getParent() != NullParent::getNullParent() && this->getParent()->isA( WorldEntity::staticClassID() ) ) 994 993 { … … 1004 1003 1005 1004 this->decreaseHealth(damage); 1006 1007 PRINTF(0)("Hit me: %s::%s now only %f/%f health\n", this->getClassCName(), this->getCName(), this->getHealth(), this->getHealthMax());1008 1005 1009 1006 if( this->getHealth() > 0)
Note: See TracChangeset
for help on using the changeset viewer.