Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5089 in orxonox.OLD for trunk/src/lib/coord/p_node.cc


Ignore:
Timestamp:
Aug 21, 2005, 8:17:31 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: rebuild Element2D. Now it is more like PNode

File:
1 edited

Legend:

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

    r5088 r5089  
    9595  if (this->toDirection != NULL)
    9696    delete this->toDirection;
    97 
    9897}
    9998
     
    575574      }
    576575
    577       if(likely(this->parentMode & PNODE_MOVEMENT))
     576      if(likely(this->parentMode & PNODE_MOVEMENT && this->bRelCoorChanged))
    578577      {
    579578        /* update the current absCoordinate */
     
    581580        this->absCoordinate = this->parent->getAbsCoor() + this->relCoordinate;
    582581      }
    583       else if( this->parentMode & PNODE_ROTATE_MOVEMENT)
     582      else if( this->parentMode & PNODE_ROTATE_MOVEMENT && this->bRelCoorChanged)
    584583      {
    585584        /* update the current absCoordinate */
Note: See TracChangeset for help on using the changeset viewer.