Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5120 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Aug 25, 2005, 12:08:04 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: better calculation of the Line-Positions in the Shell

Location:
trunk/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/bounding_volume.cc

    r5116 r5120  
    3030   this->center = new Vector();
    3131   this->bOrigVertices = true;
     32   this->vertices = NULL;
    3233}
    3334
     
    4344
    4445  if( this->vertices && !this->bOrigVertices)
    45   {
    46     delete this->vertices;
    47     this->vertices = NULL;
    48   }
     46    delete[] this->vertices;
    4947}
  • trunk/src/lib/collision_detection/obb.cc

    r5116 r5120  
    3232   this->halfLength = new float[3];
    3333   this->bCollided = false;
    34    this->vertices = NULL;
    3534}
    3635
  • trunk/src/lib/util/list.h

    r5118 r5120  
    465465 * grabs the iterator entity from another iterator
    466466 * @param iterator the iterator to grab the local currentEl from
    467  * @returns the grabbed element (current).
     467 * @returns the grabbed element (current). NULL if not found, or not defined
     468 *
     469 * Both iterators must be from the same List!
    468470 */
    469471template<class T>
    470472    T* tIterator<T>::iteratorElement(const tIterator<T>* iterator)
    471473{
    472   if (iterator != NULL)
     474  if (iterator != NULL && iterator->list == this->list)
    473475  {
    474476    this->currentEl = iterator->currentEl;
Note: See TracChangeset for help on using the changeset viewer.