Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4815 in orxonox.OLD


Ignore:
Timestamp:
Jul 7, 2005, 3:49:05 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: now some other singletons get deleted at the end of the game. there is some classid problem with the collision detection framework: the stuff gets deleted, but the names remain in the list. bensch: you will have to adjust the class ids of the cd so it works, no idea how i could do this :)

Location:
orxonox/trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/obb.cc

    r4814 r4815  
    4747  if( this->vertices && !this->bOrigVertices)
    4848  {
    49 //     for(int i = 0; i < this->numOfVertices; i++)
    50 //       delete [] this->vertices[i];
    5149    delete this->vertices;
    5250    this->vertices = NULL;
  • orxonox/trunk/src/lib/collision_detection/obb_tree_node.cc

    r4814 r4815  
    9090    this->nodeRight = NULL;
    9191  }
    92   printf("deleting nr %i obbTreeNode\n", this->getIndex());
    9392  if( this->bvElement)
    9493    delete this->bvElement;
  • orxonox/trunk/src/lib/lang/base_object.cc

    r4778 r4815  
    104104{
    105105  // if classID is a derivable object
    106   if (likely(classID & CL_MASK_SUPER_CLASS || classID & CL_MASK_SUBSUPER_CLASS))
     106  if ( likely(classID & CL_MASK_SUPER_CLASS || classID & CL_MASK_SUBSUPER_CLASS))
    107107  {
    108108    if( this->classID & classID)
    109109      return true;
    110   }
    111   // if classID is a LOWLEVEL-class
     110  } // if classID is a LOWLEVEL-class
    112111  else
    113112  {
    114     if ((this->classID & CL_MASK_LOWLEVEL_CLASS) == classID)
     113    if( (this->classID & CL_MASK_LOWLEVEL_CLASS) == classID)
    115114      return true;
    116115  }
  • orxonox/trunk/src/lib/lang/class_list.cc

    r4784 r4815  
    105105      tmp->objectList->remove(objectPointer);
    106106    }
    107 
    108107    tmp = tmp->next;
    109108  }
  • orxonox/trunk/src/orxonox.cc

    r4786 r4815  
    4141#include "text_engine.h"
    4242#include "event_handler.h"
     43#include "garbage_collector.h"
    4344
    4445#include "state.h"
     
    9192  delete EventHandler::getInstance();
    9293  delete Factory::getFirst();
     94  delete GameLoader::getInstance();
    9395  delete SoundEngine::getInstance();
    9496  delete State::getInstance();
     97  delete CDEngine::getInstance();
     98  delete GarbageCollector::getInstance();
    9599
    96100  ClassList::debug(0);
Note: See TracChangeset for help on using the changeset viewer.