Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2008, 11:47:09 PM (16 years ago)
Author:
rgrieder
Message:
  • moved colours of the SpeedBar to XML file
  • enabled render window updating in inactive mode (under windows the render window didn't show anything if inactive)
  • added row/column to ticpp error description (there are a lot more to do this, may modify the macro..)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/util/Convert.h

    r1595 r1618  
    668668
    669669        SubString tokens(input.substr(opening_parenthesis, closing_parenthesis - opening_parenthesis), ",", SubString::WhiteSpaces, false, '\\', true, '"', true, '\0', '\0', true, '\0');
    670         if (tokens.size() >= 4)
     670        if (tokens.size() >= 3)
    671671        {
    672672            if (!ConvertValue(&(output->r), tokens[0]))
     
    676676            if (!ConvertValue(&(output->b), tokens[2]))
    677677                return false;
    678             if (!ConvertValue(&(output->a), tokens[3]))
    679                 return false;
     678            if (tokens.size() >= 4)
     679            {
     680                if (!ConvertValue(&(output->a), tokens[3]))
     681                    return false;
     682            }
     683            else
     684                output->a = 1.0;
    680685
    681686            return true;
Note: See TracChangeset for help on using the changeset viewer.