Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7029 in orxonox.OLD for trunk/src/story_entities


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/story_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • 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.