Forcing all phrase hue maps to lowercase

This commit is contained in:
PS 2021-04-08 16:46:46 -10:00
parent 4130d50c1b
commit 03804d90b6
1 changed files with 9 additions and 0 deletions

View File

@ -101,6 +101,15 @@ PhraseHueMap_GenFromCSV(gscsv_sheet Sheet, gs_memory_arena* Arena)
} }
Result.Phrases[Index] = PushStringF(Arena, Phrase.Length, "%S", Phrase).ConstString; Result.Phrases[Index] = PushStringF(Arena, Phrase.Length, "%S", Phrase).ConstString;
for (u64 i = 0; i < Result.Phrases[Index].Length; i++)
{
char C = Result.Phrases[Index].Str[i];
if (IsAlpha(C))
{
Result.Phrases[Index].Str[i] = ToLower(C);
}
}
Result.PhraseHashes[Index] = PhraseHash; Result.PhraseHashes[Index] = PhraseHash;
Result.Hue0[Index] = CreateHueFromString(Hue0Str); Result.Hue0[Index] = CreateHueFromString(Hue0Str);
Result.Hue1[Index] = CreateHueFromString(Hue1Str); Result.Hue1[Index] = CreateHueFromString(Hue1Str);