Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 13, 2005, 8:48:27 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: default Values should work now even better

File:
1 edited

Legend:

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

    r4624 r4625  
    5656  if (LoadClassDescription::parametersDescription)
    5757  {
    58       //! \todo this must only be done once for each class.
    59       // locating the class
     58    // locating the class
    6059    this->classDesc = LoadClassDescription::addClass(object->getClassName());
    6160
     
    222221      if (i > 0)
    223222        PRINT(3)(", ");
    224       PRINT(3)("%s", this->defaultValues[i]);
     223      if (!strcmp(this->types[i], l_STRING_NAME))
     224      { // leave brackets !!
     225        PRINT(3)("\"%s\"", this->defaultValues[i]);
     226      }
     227      else
     228      {
     229        PRINT(3)("%s", this->defaultValues[i]);
     230      }
    225231    }
    226232    PRINT(3)(")");
Note: See TracChangeset for help on using the changeset viewer.