Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5115 in orxonox.OLD for trunk/src/lib/coord


Ignore:
Timestamp:
Aug 24, 2005, 1:30:13 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: reimplemented the list functions, as i did before in revision 5110.
This time, i looked out for the bugs, and i think i found one

@patrick: i know, that you do not want to code at the moment… :/ → see mail

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/coord/p_node.cc

    r5113 r5115  
    7878PNode::~PNode ()
    7979{
     80  printf("deleting %s::%s\n", this->getClassName(), this->getName());
    8081  tIterator<PNode>* iterator = this->children->getIterator();
    81   PNode* pn = iterator->nextElement();
     82  PNode* pn = iterator->firstElement();
    8283  while( pn != NULL)
    8384    {
     
    435436
    436437  tIterator<PNode>* iterator = this->children->getIterator();
    437   PNode* pn = iterator->nextElement();
     438  PNode* pn = iterator->firstElement();
    438439
    439440  while( pn != NULL)
     
    605606    {
    606607      tIterator<PNode>* iterator = this->children->getIterator();
    607       PNode* pn = iterator->nextElement();
     608      PNode* pn = iterator->firstElement();
    608609      while( pn != NULL)
    609610      {
     
    615616
    616617        pn->update(dt);
    617           //pn = this->children->nextElement();
    618618        pn = iterator->nextElement();
    619619      }
     
    656656    tIterator<PNode>* iterator = this->children->getIterator();
    657657      //PNode* pn = this->children->enumerate ();
    658     PNode* pn = iterator->nextElement();
     658    PNode* pn = iterator->firstElement();
    659659    while( pn != NULL)
    660660    {
     
    722722  if (depth >= 2 || depth == 0)
    723723  {
     724    Vector childColor =  Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(20,0,.0));
     725
    724726    tIterator<PNode>* iterator = this->children->getIterator();
    725       //PNode* pn = this->children->enumerate ();
    726     Vector childColor =  Color::HSVtoRGB(Color::RGBtoHSV(color)+Vector(20,0,.0));
    727     PNode* pn = iterator->nextElement();
     727    PNode* pn = iterator->firstElement();
    728728    while( pn != NULL)
    729729    {
Note: See TracChangeset for help on using the changeset viewer.