Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4501 in orxonox.OLD for orxonox/trunk/src/util/loading/load_param.cc


Ignore:
Timestamp:
Jun 3, 2005, 11:59:34 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: loading of track works just fine now. little problems with the setSavePoint-function

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/util/loading/load_param.cc

    r4496 r4501  
    3434  this->loadString = NULL;
    3535
    36   if (likely(!multi))
    37     this->loadString = grabParameter(root, paramName);
     36  if (paramCount == 0)
     37    this->loadString = "none";
    3838  else
    3939    {
    40       printf("paramName:::::%s\n", root->Value());
    41       if (!strcmp(root->Value(), paramName))
    42         {
    43           const TiXmlNode* val = root->FirstChild();
    44           if( val->ToText())
    45             this->loadString = val->Value();
    46         }
    47     }
    48   if (loadString)
    49     printf("%s\n", loadString);
     40      if (likely(!multi))
     41        this->loadString = grabParameter(root, paramName);
     42      else
     43        {
     44          if (!strcmp(root->Value(), paramName))
     45            {
     46              const TiXmlNode* val = root->FirstChild();
     47              if( val->ToText())
     48                this->loadString = val->Value();
     49            }
     50        }
     51    }
    5052
    5153  this->paramDesc = NULL;
Note: See TracChangeset for help on using the changeset viewer.