Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 13, 2006, 1:14:53 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: the delete Mechanism of PNode seems to work again.
This is done by always deleting the first node, and not walking through a list, that is eleminated during deletion time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world_data.cc

    r7125 r7126  
    252252  FastFactory::flushAll(true);
    253253  GraphicsEngine::getInstance()->displayFPS(false);
    254   State::setPlayer(NULL);
    255254  // erease everything that is left.
    256255  // delete PNode::getNullParent(); // not needed as this is also done in the next step (and also much cleaner)
     
    261260    while (!nodeList->empty())
    262261  {
    263     ClassList::debug( 3, CL_PARENT_NODE);
    264     PNode::getNullParent()->debugNode( 1);
    265 
    266 /*    printf("%s::%s\n", nodeList->front()->getClassName(), nodeList->front()->getName());*/
     262//    ClassList::debug( 3, CL_PARENT_NODE);
     263//    PNode::getNullParent()->debugNode(0);
     264//    printf("%s::%s\n", nodeList->front()->getClassName(), nodeList->front()->getName());
    267265    delete nodeList->front();
    268     printf("OK\n");
    269266  }
    270267  /* remove the player object */
    271268  if( this->localPlayer)
    272269    delete this->localPlayer;
     270  State::setPlayer(NULL);
    273271
    274272  nodeList = ClassList::getList(CL_GRAPHICS_EFFECT);
Note: See TracChangeset for help on using the changeset viewer.