Changeset 5116 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Aug 24, 2005, 1:47:05 AM (19 years ago)
- Location:
- trunk/src/lib/collision_detection
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/bounding_volume.cc
r4836 r5116 29 29 this->setClassID(CL_BOUNDING_VOLUME, "BoundingVolume"); 30 30 this->center = new Vector(); 31 this->bOrigVertices = false;31 this->bOrigVertices = true; 32 32 } 33 33 … … 41 41 // delete what has to be deleted here 42 42 delete this->center; 43 44 if( this->vertices && !this->bOrigVertices) 45 { 46 delete this->vertices; 47 this->vertices = NULL; 48 } 43 49 } -
trunk/src/lib/collision_detection/cd_engine.cc
r5115 r5116 100 100 //////////////// 101 101 102 /* 102 /* if( likely(entity2 != this->terrain)) 103 103 { 104 104 PRINTF(4)("checking object %s against %s\n", entity1->getName(), entity2->getName()); … … 108 108 entity2 = iterator2->nextElement(); 109 109 } 110 //printf("\n");110 // printf("\n"); 111 111 } 112 112 entity1 = iterator1->nextElement(); -
trunk/src/lib/collision_detection/obb.cc
r4836 r5116 44 44 delete [] this->axis; 45 45 delete [] this->halfLength; 46 47 if( this->vertices && !this->bOrigVertices)48 {49 delete this->vertices;50 this->vertices = NULL;51 }52 46 } 53 47
Note: See TracChangeset
for help on using the changeset viewer.