Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 31, 2006, 6:02:16 PM (18 years ago)
Author:
patrick
Message:

current_cd: merged with the current version of the trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/current_cd/src/world_entities/world_entity.cc

    r6815 r6909  
    206206bool WorldEntity::buildObbTree(unsigned int depth)
    207207{
     208<<<<<<< .working
    208209  if (this->obbTree)
    209210    delete this->obbTree;
     
    211212  if (this->models[0] != NULL)
    212213  {
     214=======
     215  if( this->model != NULL) {
     216>>>>>>> .merge-right.r6905
    213217    PRINTF(4)("creating obb tree\n");
     218<<<<<<< .working
    214219
    215220
    216221    this->obbTree = new OBBTree(depth, (sVec3D*)this->models[0]->getVertexArray(), this->models[0]->getVertexCount());
     222=======
     223    //this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     224    this->obbTree = new OBBTree(depth, *model->getModelInfo());
     225>>>>>>> .merge-right.r6905
    217226    return true;
    218227  }
    219228  else
    220229  {
    221     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
     230    PRINTF(1)("could not create obb-tree, because no model was loaded yet\n");
    222231    this->obbTree = NULL;
    223232    return false;
     
    257266 * Implement behaviour like damage application or other miscellaneous collision stuff in this function
    258267 */
    259 void WorldEntity::collidesWith(WorldEntity* entity, const Vector& location)
     268void WorldEntity::collidesWith(const WorldEntity& entity, const Vector& location) const
    260269{
    261270  /**
Note: See TracChangeset for help on using the changeset viewer.