Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9336 in orxonox.OLD


Ignore:
Timestamp:
Jul 19, 2006, 11:33:26 PM (18 years ago)
Author:
patrick
Message:

detected and fixed an obb memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/lib/collision_detection/obb_tree_node.cc

    r9235 r9336  
    434434    }
    435435  }
     436  delete [] triangleCenter;
    436437  PRINTF(4)("\nPartition1: got \t%i Vertices \nPartition2: got \t%i Vertices\n", partition1.size(), partition2.size());
    437438
     
    476477    return;
    477478
    478   float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius;
    479   float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
     479//   float distanceMax = this->bvElement->radius + ((OBBTreeNode*)treeNode)->bvElement->radius;
     480//   float distance = fabs((nodeA->getAbsCoor() - nodeB->getAbsCoor()).len());
    480481
    481482
Note: See TracChangeset for help on using the changeset viewer.