Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Feb 12, 2006, 6:06:26 PM (19 years ago)
Author:
bensch
Message:

try fix

File:
1 edited

Legend:

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

    r7008 r7125  
    8080PNode::~PNode ()
    8181{
     82  printf("delete PNode: %s::%s\n", this->getClassName(), this->getName());
    8283  // remove the Node, delete it's children (if required).
    8384  std::list<PNode*>::iterator tmp = this->children.begin();
     
    9394      {
    9495        if (this == PNode::nullParent && (*deleteNode)->parentMode & PNODE_REPARENT_TO_NULL)
     96        {
     97          printf("%s::%s deletes PNode: %s::%s\n",
     98                 this->getClassName(), this->getName(),
     99                 (*deleteNode)->getClassName(), (*deleteNode)->getName());
    95100          delete (*deleteNode);
     101        }
    96102        else
     103        {
     104          printf("%s::%s reparents PNode: %s::%s\n",
     105                 this->getClassName(), this->getName(),
     106                 (*deleteNode)->getClassName(), (*deleteNode)->getName());
     107
    97108          (*deleteNode)->reparent();
     109        }
    98110      }
    99111      else
     112      {
     113        printf("%s::%s deletes PNode: %s::%s\n",
     114               this->getClassName(), this->getName(),
     115               (*deleteNode)->getClassName(), (*deleteNode)->getName());
    100116        delete (*deleteNode);
     117      }
    101118    }
    102119
Note: See TracChangeset for help on using the changeset viewer.