Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8124 in orxonox.OLD for branches/cr/src/world_entities


Ignore:
Timestamp:
Jun 3, 2006, 2:36:03 PM (18 years ago)
Author:
patrick
Message:

cr: some bugs found and solved, minor cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cr/src/world_entities/world_entity.cc

    r7989 r8124  
    323323  this->collisionHandles[type] = CREngine::getInstance()->subscribeReaction(this, type);
    324324
    325   // now there is at least one collision reaction subsribed
     325  // now there is at least one collision reaction subscribed
    326326  this->bReactive = true;
    327327}
     
    379379  // create a collision event
    380380  CollisionEvent* c = CREngine::getInstance()->popCollisionEventObject();
    381   assert(c != NULL);
     381  assert(c != NULL); // if this should fail: we got not enough precached CollisionEvents: alter value in cr_defs.h
    382382  c->collide(entityA, entityB, bvA, bvB);
    383383
    384   for(int i = 0; i < CREngine::CR_NUMBER; ++i)
     384  for( int i = 0; i < CREngine::CR_NUMBER; ++i)
    385385    if( this->collisionHandles[i] != NULL)
    386386      this->collisionHandles[i]->registerCollisionEvent(c);
Note: See TracChangeset for help on using the changeset viewer.