Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3527 in orxonox.OLD for orxonox/trunk/src/track_manager.cc


Ignore:
Timestamp:
Mar 13, 2005, 8:49:01 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: trackManager: now the TrackManager knows his path also backwards.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.cc

    r3522 r3527  
    4646  this->curve = NULL;
    4747  this->children = NULL;
     48
     49  this->history = NULL;
     50
    4851  this->condFunc = &TrackElement::random;
    4952}
     
    645648      && this->currentTrackElem->children)
    646649    {
    647       if (this->currentTrackElem->jumpTime > 0)
     650      if (this->currentTrackElem->jumpTime != 0.0)
    648651        this->jumpTo(this->localTime + this->currentTrackElem->jumpTime);
     652      // jump to the next TrackElement and also set the history of the new Element to the old one.
     653      TrackElement* tmpHistoryElem = this->currentTrackElem;
    649654      this->currentTrackElem = this->currentTrackElem->children[this->choosePath(this->currentTrackElem)];
     655      this->currentTrackElem->history = tmpHistoryElem;
    650656    }
    651657  if (this->bindSlave)
Note: See TracChangeset for help on using the changeset viewer.