Changeset 3557 in orxonox.OLD for orxonox/branches/levelloader/src/track_manager.cc
- Timestamp:
- Mar 15, 2005, 10:53:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/track_manager.cc
r3530 r3557 705 705 { 706 706 assert( container->Value() != NULL); 707 if( sscanf( container->Value(), "%f,%f,%f", &x, &y, &z) == 3) 707 if( sscanf( container->Value(), "%lf,%lf,%lf", &x, &y, &z) == 3) 708 { 709 PRINTF0("Loaded Point: %lf,%lf,%lf (%s)\n", x, y, z, container->Value()); 708 710 addPoint( Vector( x, y, z)); 711 } 709 712 else 710 713 { 711 PRINTF (1)("Invalid Point in Track (skipped)\n");714 PRINTF0("Invalid Point in Track (skipped)\n"); 712 715 } 713 716 } … … 719 722 { 720 723 assert( container->Value() != NULL); 721 if( sscanf( container->Value(), "%f", &d) == 1) 724 if( sscanf( container->Value(), "%lf", &d) == 1) 725 { 726 PRINTF0("Loaded Duration: %lf (%s)\n", d, container->Value()); 722 727 setDuration( d); 728 } 723 729 else 724 730 { 725 PRINTF (1)("Invalid Duration in Track (skipped)\n");731 PRINTF0("Invalid Duration in Track (skipped)\n"); 726 732 } 727 733 } … … 729 735 else if( !strcmp( element->Value(), "SavePoint")) 730 736 { 737 PRINTF0("Loaded Savepoint\n"); 731 738 setSavePoint(); 732 739 } … … 737 744 { 738 745 assert( container->Value() != NULL); 746 PRINTF0("Loaded Fork: %s\n", container->Value()); 739 747 forkS( container->Value()); 740 748 } … … 746 754 { 747 755 assert( container->Value() != NULL); 756 PRINTF0("Loaded Join: %s\n", container->Value()); 748 757 joinS( container->Value()); 749 758 } … … 755 764 { 756 765 assert( container->Value() != NULL); 766 PRINTF0("Loaded WorkOn: %s\n", container->Value()); 757 767 workOnS( container->Value()); 758 768 }
Note: See TracChangeset
for help on using the changeset viewer.