Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

cr: more logical errors removed from the code - multikill

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.