Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2008, 5:38:03 AM (17 years ago)
Author:
landauf
Message:
  • added set and tset functions to the ConfigValueContainer to (temporary) set a config-value to a new value
  • ConfigValueContainer uses now the functions of MultiTypeMath to convert and assign values
  • added some errorhandling to the CommandExecutor in case there are not enough parameters when executing the command
  • added updateConfigValues function to Identifier
  • added addTime and removeTime functions to the Timer
  • some changes in Executor to allow adding description and default-values when using the ConsoleCommand macro
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/util/String.cc

    r947 r957  
    7272    //  3) ;comment in unreal tournament config-file style
    7373    //  4) //comment in code style
    74     if (teststring[0] == '#' || teststring[0] == '%' || teststring[0] == ';' || (teststring[0] == '/' && teststring[0] == '/'))
    75         return true;
     74    if (teststring.size() >= 2)
     75    {
     76        if (teststring[0] == '#' || teststring[0] == '%' || teststring[0] == ';' || (teststring[0] == '/' && teststring[1] == '/'))
     77            return true;
     78    }
     79    else if (teststring.size() == 1)
     80    {
     81        if (teststring[0] == '#' || teststring[0] == '%' || teststring[0] == ';')
     82            return true;
     83    }
    7684
    7785    return false;
Note: See TracChangeset for help on using the changeset viewer.