Changeset 3351 in orxonox.OLD for orxonox/branches/parenting/src/track_manager.cc
- Timestamp:
- Jan 6, 2005, 5:09:13 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/track_manager.cc
r3350 r3351 232 232 } 233 233 this->currentTrackElem->curve->addNode(newPoint); 234 this->currentTrackElem->nodeCount++; 234 235 } 235 236 … … 249 250 // \todo HotPoint Handling. 250 251 this->currentTrackElem->curve->addNode(newPoint); 252 this->currentTrackElem->nodeCount++; 251 253 } 252 254 … … 277 279 void TrackManager::fork(unsigned int count, ...) 278 280 { 279 int* trackIDs = new int [count]; 281 int* trackIDs = new int[count]; 282 this->forkV(count, trackIDs); 280 283 va_list ID; 281 284 va_start (ID, count); 282 285 for(int i = 0; i < count; i++) 283 286 { 284 trackIDs[i] = va_arg (ID, int); 285 } 286 va_end(ID); 287 this->forkV(count, trackIDs); 287 *va_arg (ID, int*) = trackIDs[i]; 288 } 289 va_end(ID); 288 290 delete []trackIDs; 289 291 } … … 303 305 return; 304 306 this->currentTrackElem->isFork = true; 305 307 for(int i = 0; i < count; i++) 308 trackIDs[i]=this->trackElemCount+1+i; 306 309 this->initChildren(count); 307 310 } … … 463 466 printf(" is a SavePoint\n"); 464 467 if(tmpElem->isFork) 465 printf(" is A Fork with with %d children\n", tmpElem->childCount); 468 { 469 printf(" is A Fork with with %d children: ", tmpElem->childCount); 470 for(int i = 0; i < tmpElem->childCount; i++) 471 printf("=%d= ", tmpElem->children[i]->ID); 472 printf("\n"); 473 } 466 474 if(tmpElem->isJoined) 467 475 printf(" is Joined at the End\n");
Note: See TracChangeset
for help on using the changeset viewer.