Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4502 in orxonox.OLD for orxonox/trunk/src/util/track


Ignore:
Timestamp:
Jun 3, 2005, 12:15:55 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: fixed the bug with the setSavePointS()-function

Location:
orxonox/trunk/src/util/track
Files:
2 edited

Legend:

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

    r4501 r4502  
    657657void TrackManager::setSavePointS(const char* nextElementName)
    658658{
    659   this->firstTrackElem->findByID(this->setSavePoint(NULL))->setName(nextElementName);
     659  this->setSavePoint(NULL);
     660  if (strcmp(nextElementName, ""))
     661    this->firstTrackElem->findByID(this->trackElemCount)->setName(nextElementName);
    660662}
    661663
     
    668670   If the HotPoint was defined as a fork the Point will \b not be set into a savePoint.
    669671*/
    670 int TrackManager::setSavePoint(TrackElement* trackElem)
     672void TrackManager::setSavePoint(TrackElement* trackElem)
    671673{
    672674  if (!trackElem)
     
    677679    {
    678680      PRINTF(2)("%d is already finished \n", trackElem->ID);
    679       return trackElem->getChild(0)->ID;
     681      return;
    680682    }
    681683  trackElem->isSavePoint = true;
  • orxonox/trunk/src/util/track/track_manager.h

    r4501 r4502  
    157157  int addHotPoint(Vector newPoint, TrackElement* trackElem = NULL);
    158158  void setSavePointS(const char* nextElementName);
    159   int setSavePoint(TrackElement* trackElem = NULL);
     159  void setSavePoint(TrackElement* trackElem = NULL);
    160160  void fork(unsigned int count, ...);
    161161  void forkS(unsigned int count, ...);
Note: See TracChangeset for help on using the changeset viewer.