Changeset 7948 in orxonox.OLD for branches/cr
- Timestamp:
- May 29, 2006, 1:35:35 AM (19 years ago)
- Location:
- branches/cr/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_engine.cc
r7947 r7948 50 50 { 51 51 CREngine::singletonRef = NULL; 52 53 if( this->cachedCollisions.size() != CR_MAX_COLLISIONS) 54 PRINTF(0)("CollisionReaction Error: cache size missmatch: %i of %i\n", this->cachedCollisions.size(), CR_NUMBER); 55 56 this->reset(); 57 58 while( !this->cachedCollisions.empty()) 59 delete this->cachedCollisions.front(); 60 this->cachedCollisions.clear(); 52 61 } 53 62 … … 70 79 { 71 80 // first clear all CollisionHandles 72 std::vector<CollisionHandle*>::iterator it; 73 for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++)81 82 while( !this->collisionHandles.empty()) 74 83 { 75 (*it)->reset();76 delete *it;84 this->collisionHandles.front()->reset(); 85 delete this->collisionHandles.front(); 77 86 } 78 87 this->collisionHandles.clear(); -
branches/cr/src/story_entities/game_world.cc
r7947 r7948 136 136 AnimationPlayer::getInstance(); 137 137 PhysicsEngine::getInstance(); 138 138 CREngine::getInstance(); 139 139 } 140 140 … … 199 199 delete AnimationPlayer::getInstance(); 200 200 delete PhysicsEngine::getInstance(); 201 delete CREngine::getInstance(); 201 202 202 203 State::setCurrentStoryEntity(NULL);
Note: See TracChangeset
for help on using the changeset viewer.