Changeset 1618 for code/branches/hud/src/util
- Timestamp:
- Jun 22, 2008, 11:47:09 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/util/Convert.h
r1595 r1618 668 668 669 669 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) 671 671 { 672 672 if (!ConvertValue(&(output->r), tokens[0])) … … 676 676 if (!ConvertValue(&(output->b), tokens[2])) 677 677 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; 680 685 681 686 return true;
Note: See TracChangeset
for help on using the changeset viewer.