Changeset 7973 in orxonox.OLD for branches/cr
- Timestamp:
- May 30, 2006, 11:28:50 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/collision_handle.cc
r7969 r7973 35 35 this->type = type; 36 36 37 this->targetList.clear(); 37 38 } 38 39 … … 61 62 void CollisionHandle::addTarget(long classID) 62 63 { 64 printf("addTarget: %i this is target nr %i\n", classID, this->targetList.size()); 63 65 // make sure there is no dublicate 64 std::vector<long>::iterator it; 65 for( it = this->targetList.begin(); it != this->targetList.end(); it++) 66 if(*it == classID) 67 return; 66 // for(int i = 0; i < this->targetList.size(); ++i) 67 // printf("id: %i\n", this->targetList[i]); 68 69 // std::vector<long>::iterator it = this->targetList.begin(); 70 // for( ; it < this->targetList.end(); it++) 71 // printf("id: %i\n", *it); 72 // if( (*it) == classID) 73 // return; 68 74 69 75 // add element
Note: See TracChangeset
for help on using the changeset viewer.