Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9035 in orxonox.OLD for branches/single_player_map/src/lib


Ignore:
Timestamp:
Jul 3, 2006, 2:17:40 PM (19 years ago)
Author:
patrick
Message:

npc walk again

File:
1 edited

Legend:

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

    r9031 r9035  
    5656  float damage = 0.0f;
    5757
    58  // PRINTF(0)("Dealing damage - Handling collision: %s vs %s\n",
    59         //    collision->getEntityA()->getClassName(),
    60         //    collision->getEntityB()->getClassName());
     58  PRINTF(0)("Dealing damage - Handling collision: %s vs %s\n",
     59            collision->getEntityA()->getClassName(),
     60            collision->getEntityB()->getClassName());
    6161
    6262  // the collision damage been dealed by the entity
     
    6464    damage = collision->getEntityB()->getDamage();
    6565    collision->getEntityA()->hit(damage, collision->getEntityB());
     66    PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClassName());
    6667  }
    67  // PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClassName());
    6868
    6969  if( collision->isEntityBCollide()) {
    7070    damage = collision->getEntityA()->getDamage();
    7171    collision->getEntityB()->hit(damage, collision->getEntityA());
     72    PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClassName());
    7273  }
    73  // PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClassName());
    7474
    7575  collision->flushCollisionEvents();
Note: See TracChangeset for help on using the changeset viewer.