Changeset 3838 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Apr 15, 2005, 6:30:08 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/track_manager.cc
r3837 r3838 615 615 \param trackIDs A Pointer to an Array of ints which will hold the trackID's (the user will have to reserve space for this). 616 616 \param trackElem The TrackElement to appy this to. (if NULL chose this->currentTrackElement) 617 \see TrackManager::fork(unsigned int count, ...) 617 618 */ 618 619 void TrackManager::forkV(unsigned int count, int* trackIDs, TrackElement* trackElem) … … 684 685 } 685 686 686 687 687 /** 688 688 \brief joins some tracks together again. … … 720 720 TrackElement* tmpTrackElem = this->firstTrackElem->findByID(trackIDs[0]); 721 721 if (!tmpTrackElem->backLoopCheck(tmpTrackElem)) 722 PRINTF(2)("Backloop connection detected at joining trackElements\n");723 724 // chanching work-on to temporary value. going back at the end.725 int tmpCurrentWorkingID = this->currentTrackElem->ID;726 this->workOn(trackIDs[0]); 727 TrackElement* firstJoint = this->currentTrackElem;722 { 723 PRINTF(2)("Backloop connection detected at joining trackElements\n -> TRACK WILL NOT BE JOINED\n"); 724 return; 725 } 726 727 TrackElement* firstJoint = this->firstTrackElem->findByID(trackIDs[0]); 728 728 float tmpLatestTime = firstJoint->endTime; 729 729 … … 734 734 // firstJoint->mainJoin = true; 735 735 if(!firstJoint->isHotPoint) 736 this->setSavePoint( );736 this->setSavePoint(firstJoint); 737 737 // Timing: 738 738 for (int i = 0; i < count; i++) … … 769 769 } 770 770 } 771 if(firstJoint->child Count > 0)771 if(firstJoint->children) 772 772 { 773 773 //TrackElement* enumElem = firstJoint->children->enumerate(); … … 776 776 while (enumElem) 777 777 { 778 PRINTF( 4)("Setting startingTime of %d to %f.\n", enumElem->ID, tmpLatestTime);778 PRINTF(5)("Setting startingTime of %d to %f.\n", enumElem->ID, tmpLatestTime); 779 779 enumElem->startingTime = tmpLatestTime; 780 780 enumElem->endTime = tmpLatestTime + enumElem->duration; … … 784 784 delete iterator; 785 785 } 786 // returning to the TrackElement we were working on.787 this->workOn(tmpCurrentWorkingID);788 786 } 789 787 … … 828 826 } 829 827 } 830 for (int i = 1; i <= trackElemCount;i++)828 for (int i = 1; i <= trackElemCount;i++) 831 829 if (this->firstTrackElem->findByID(i)->endTime > this->maxTime) 832 830 this->maxTime = this->firstTrackElem->findByID(i)->endTime; // very bad implemented :/
Note: See TracChangeset
for help on using the changeset viewer.