Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 30, 2006, 11:38:37 PM (19 years ago)
Author:
patrick
Message:

cr: collision/collision event creation and resycling works now

File:
1 edited

Legend:

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

    r7996 r7999  
    6060void CollisionHandle::addTarget(long target)
    6161{
    62   PRINTF(0)("addTarget: %i \n", target);
    6362  // make sure there is no dublicate
    64 //   for(int i = 0; i < this->targetList.size(); ++i)
    65 //     printf("id: %i\n", this->targetList[i]);
    66 
    67 //   std::vector<long>::iterator it = this->targetList.begin();
    68 //   for( ; it < this->targetList.end(); it++)
    69 //     printf("id: %i\n", *it);
    70 //     if( (*it) == classID)
    71 //       return;
    72 
     63  std::vector<long>::iterator it = this->targetList.begin();
     64  for( ; it < this->targetList.end(); it++)
     65    if( (*it) == target)
     66      return;
    7367
    7468  // add element
    75    this->targetList.push_back(10);
     69   PRINTF(0)("addTarget: %i \n", target);
     70   this->targetList.push_back(target);
    7671}
    7772
Note: See TracChangeset for help on using the changeset viewer.