Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 15, 2005, 10:53:46 AM (19 years ago)
Author:
chris
Message:

orxonox/branches/levelloader: Rolling toward bug-free-ness

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/levelloader/src/track_manager.cc

    r3530 r3557  
    705705                        {
    706706                                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());
    708710                                        addPoint( Vector( x, y, z));
     711                                }
    709712                                else
    710713                                {
    711                                         PRINTF(1)("Invalid Point in Track (skipped)\n");
     714                                        PRINTF0("Invalid Point in Track (skipped)\n");
    712715                                }                       
    713716                        }
     
    719722                        {
    720723                                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());
    722727                                        setDuration( d);
     728                                }
    723729                                else
    724730                                {
    725                                         PRINTF(1)("Invalid Duration in Track (skipped)\n");
     731                                        PRINTF0("Invalid Duration in Track (skipped)\n");
    726732                                }                       
    727733                        }
     
    729735                else if( !strcmp( element->Value(), "SavePoint"))
    730736                {
     737                        PRINTF0("Loaded Savepoint\n");
    731738                        setSavePoint();
    732739                }
     
    737744                        {
    738745                                assert( container->Value() != NULL);
     746                                PRINTF0("Loaded Fork: %s\n", container->Value());
    739747                                forkS( container->Value());
    740748                        }
     
    746754                        {
    747755                                assert( container->Value() != NULL);
     756                                PRINTF0("Loaded Join: %s\n", container->Value());
    748757                                joinS( container->Value());
    749758                        }
     
    755764                        {
    756765                                assert( container->Value() != NULL);
     766                                PRINTF0("Loaded WorkOn: %s\n", container->Value());
    757767                                workOnS( container->Value());
    758768                        }
Note: See TracChangeset for help on using the changeset viewer.