Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8169 in orxonox.OLD for branches/cr/src/lib/collision_reaction


Ignore:
Timestamp:
Jun 6, 2006, 2:05:33 AM (19 years ago)
Author:
patrick
Message:

cr: using a new damage structure for dealing damage. working

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/lib/collision_reaction/cr_object_damage.cc

    r8168 r8169  
    6060  // the collision damage been dealed by the entity
    6161  if( collision->isEntityACollide()) {
    62     damage = collision->getEntityB()->getHealthMax();
     62    damage = collision->getEntityB()->getDamage();
    6363    collision->getEntityA()->decreaseHealth(damage);
    6464  }
     
    6666
    6767  if( collision->isEntityBCollide()) {
    68     damage = collision->getEntityA()->getHealthMax();
     68    damage = collision->getEntityA()->getDamage();
    6969    collision->getEntityB()->decreaseHealth(damage);
    7070  }
Note: See TracChangeset for help on using the changeset viewer.