Changeset 8490 in orxonox.OLD for trunk/src/lib/collision_reaction/cr_engine.cc
- Timestamp:
- Jun 15, 2006, 9:34:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_reaction/cr_engine.cc
r8362 r8490 126 126 { 127 127 std::vector<CollisionHandle*>::iterator it; 128 for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++) 129 { 130 if( *it == collisionHandle) 131 { 128 for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++) { 129 if( *it == collisionHandle) { 132 130 this->collisionHandles.erase(it); 133 131 delete collisionHandle; … … 147 145 for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++) 148 146 { 149 if( (*it)->isCollided() || (*it)->isContinuousPoll()) //does it have any collisions to report at all147 if( !(*it)->isDispatched() || (*it)->isContinuousPoll()) //does it have any collisions to report at all 150 148 { 151 149 (*it)->handleCollisions();
Note: See TracChangeset
for help on using the changeset viewer.