Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8168 in orxonox.OLD


Ignore:
Timestamp:
Jun 6, 2006, 1:49:45 AM (18 years ago)
Author:
patrick
Message:

cr: less and better debug output

Location:
branches/cr/src
Files:
3 edited

Legend:

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

    r8167 r8168  
    122122  else
    123123    c = this->collisionList.back();
    124 
    125   assert( c->getEntityA() != NULL);
    126   assert( c->getEntityB() != NULL);
    127124
    128125  return c;
  • branches/cr/src/lib/collision_reaction/cr_object_damage.cc

    r8166 r8168  
    5454  float damage;
    5555
    56   assert(collision->getEntityA() != NULL);
    57   assert(collision->getEntityB() != NULL);
    58 
    5956  PRINTF(0)("Dealing damage - Handling collision: %s vs %s\n",
    6057            collision->getEntityA()->getClassName(),
     
    6663    collision->getEntityA()->decreaseHealth(damage);
    6764  }
     65  PRINTF(0)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClassName());
     66
    6867  if( collision->isEntityBCollide()) {
    6968    damage = collision->getEntityA()->getHealthMax();
    7069    collision->getEntityB()->decreaseHealth(damage);
    7170  }
     71  PRINTF(0)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClassName());
    7272
    7373  collision->flushCollisionEvents();
  • branches/cr/src/world_entities/world_entity.cc

    r8124 r8168  
    376376    return false;
    377377
    378   PRINTF(0)("Registering Collision: %s vs %s \n", entityA->getClassName(), entityB->getClassName());
    379378  // create a collision event
    380379  CollisionEvent* c = CREngine::getInstance()->popCollisionEventObject();
Note: See TracChangeset for help on using the changeset viewer.