Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8126 in orxonox.OLD


Ignore:
Timestamp:
Jun 3, 2006, 3:04:07 PM (18 years ago)
Author:
patrick
Message:

cr: more logical errors removed from the code - multikill

Location:
branches/cr/src/lib/collision_reaction
Files:
2 edited

Legend:

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

    r8125 r8126  
    121121  // set the state to not dispatched
    122122  this->bDispatched = false;
     123  this->bCollided = true;
    123124  collision->setEntityBCollide(true);
    124125
     
    138139  // set the state to not dispatched
    139140  this->bDispatched = false;
     141  this->bCollided = true;
    140142
    141143  // checks if these WorldEntities have already collided or if its a new collision -> create a new Collision object
     
    163165  // collision reaction calculations (for every collision there will be a reaction)
    164166  vector<Collision*>::iterator it = this->collisionList.begin();
    165   for(; it < this->collisionList.end(); it++)
    166   {
     167  for(; it < this->collisionList.end(); it++) {
    167168    (*it)->handleCollisionEvents();
    168169  }
     
    171172  this->bDispatched = true;
    172173  this->bCollided = false;
     174
    173175  this->flushCollisions();
    174176}
  • branches/cr/src/lib/collision_reaction/cr_engine.cc

    r8029 r8126  
    145145  for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++)
    146146  {
    147     if( (*it)->isCollided())  //does it have any collisions to report at all
     147    if( (*it)->isCollided() || (*it)->isContinuousPoll())  //does it have any collisions to report at all
    148148    {
    149149      (*it)->handleCollisions();
Note: See TracChangeset for help on using the changeset viewer.