fix all Uppercase mods don't get themed
This commit is contained in:
@@ -586,11 +586,14 @@ CString PlayerOptions::ThemeMod( CString sOneMod )
|
|||||||
sOneMod.erase( sOneMod.begin(), sOneMod.begin()+sizeof(PERCENT_100) );
|
sOneMod.erase( sOneMod.begin(), sOneMod.begin()+sizeof(PERCENT_100) );
|
||||||
}
|
}
|
||||||
|
|
||||||
// Capitalize all tokens
|
// Change all token to first letter capitalized, rest lowercase
|
||||||
CStringArray asTokens;
|
CStringArray asTokens;
|
||||||
split( sOneMod, " ", asTokens );
|
split( sOneMod, " ", asTokens );
|
||||||
for( unsigned i=0; i<asTokens.size(); i++ )
|
FOREACH( CString, asTokens, s )
|
||||||
asTokens[i] = Capitalize( asTokens[i] );
|
{
|
||||||
|
s->MakeLower();
|
||||||
|
*s = Capitalize( *s );
|
||||||
|
}
|
||||||
|
|
||||||
/* Theme the mod name (the last string). Allow this to not exist, since
|
/* Theme the mod name (the last string). Allow this to not exist, since
|
||||||
* characters might use modifiers that don't exist in the theme. */
|
* characters might use modifiers that don't exist in the theme. */
|
||||||
|
|||||||
Reference in New Issue
Block a user