Changeset 8169 in orxonox.OLD for branches/cr/src/lib/collision_reaction
- Timestamp:
- Jun 6, 2006, 2:05:33 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_object_damage.cc
r8168 r8169 60 60 // the collision damage been dealed by the entity 61 61 if( collision->isEntityACollide()) { 62 damage = collision->getEntityB()->get HealthMax();62 damage = collision->getEntityB()->getDamage(); 63 63 collision->getEntityA()->decreaseHealth(damage); 64 64 } … … 66 66 67 67 if( collision->isEntityBCollide()) { 68 damage = collision->getEntityA()->get HealthMax();68 damage = collision->getEntityA()->getDamage(); 69 69 collision->getEntityB()->decreaseHealth(damage); 70 70 }
Note: See TracChangeset
for help on using the changeset viewer.