Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7029 in orxonox.OLD


Ignore:
Timestamp:
Feb 3, 2006, 9:16:07 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: element2d's should be cleanly deleted at the end now :)

Location:
trunk/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r6990 r7029  
    102102{
    103103  // delete what has to be deleted here
    104   delete this->geTextCFPS;
    105   delete this->geTextMaxFPS;
    106   delete this->geTextMinFPS;
     104  this->displayFPS( false );
    107105
    108106  delete[] this->hwRenderer;
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r6990 r7029  
    8787Element2D::~Element2D ()
    8888{
     89  this->debug();
    8990  // remove the Element2D, delete it's children (if required).
    9091  std::list<Element2D*>::iterator tmp = this->children.begin();
  • trunk/src/story_entities/game_world.cc

    r7004 r7029  
    191191  if (this->dataXML)
    192192    delete this->dataXML;
    193 
    194193}
    195194
  • trunk/src/story_entities/game_world_data.cc

    r7020 r7029  
    246246{
    247247  FastFactory::flushAll(true);
     248  GraphicsEngine::getInstance()->displayFPS(false);
    248249
    249250  // erease everything that is left.
     
    263264    while (!nodeList->empty())
    264265      delete nodeList->front();
    265   //
    266   //   nodeList = ClassList::getList(CL_ELEMENT_2D);
    267   //   if (nodeList != NULL)
    268   //     while (!nodeList->empty())
    269   //       delete nodeList->front();
     266
     267
     268  nodeList = ClassList::getList(CL_ELEMENT_2D);
     269    if (nodeList != NULL)
     270       while (!nodeList->empty())
     271         delete nodeList->front();
    270272
    271273
  • trunk/src/story_entities/simple_game_menu.cc

    r7019 r7029  
    242242ErrorMessage SimpleGameMenu::unloadData()
    243243{
    244   GameWorld::unloadData();
    245244
    246245  EventHandler::getInstance()->unsubscribe(this, ES_MENU);
     
    259258    (*mit).screenshootList.clear();
    260259  }
     260
     261
     262  GameWorld::unloadData();
    261263}
    262264
Note: See TracChangeset for help on using the changeset viewer.