Changeset 5111 in orxonox.OLD for trunk/src/lib/collision_detection
- Timestamp:
- Aug 23, 2005, 11:13:56 PM (19 years ago)
- Location:
- trunk/src/lib/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/cd_engine.cc
r5110 r5111 80 80 tIterator<WorldEntity>* iterator1 = entityList->getIterator(); 81 81 tIterator<WorldEntity>* iterator2 = entityList->getIterator(); 82 WorldEntity* entity1 = iterator1-> firstElement();82 WorldEntity* entity1 = iterator1->nextElement(); 83 83 WorldEntity* entity2 = iterator2->seekElement(entity1); 84 84 PRINTF(3)("checking for collisions\n"); 85 /*while( entity1 != NULL)85 while( entity1 != NULL) 86 86 { 87 87 if( likely(entity1 != this->terrain)) … … 101 101 entity2 = iterator2->seekElement(entity1); 102 102 103 } */103 } 104 104 delete iterator1; 105 105 delete iterator2; … … 133 133 134 134 tIterator<WorldEntity>* iterator = entityList->getIterator(); 135 WorldEntity* entity = iterator-> firstElement();135 WorldEntity* entity = iterator->nextElement(); 136 136 while( entity != NULL) 137 137 { -
trunk/src/lib/collision_detection/obb_tree_node.cc
r5110 r5111 574 574 575 575 iterator = partition1.getIterator(); 576 element = iterator-> firstElement();576 element = iterator->nextElement(); 577 577 index = 0; 578 578 while( element != NULL) … … 592 592 593 593 iterator = partition2.getIterator(); 594 element = iterator-> firstElement();594 element = iterator->nextElement(); 595 595 index = 0; 596 596 while( element != NULL)
Note: See TracChangeset
for help on using the changeset viewer.