Sentences: Force them to be read in uppercased.
This commit is contained in:
parent
22602fd96a
commit
44b6a3d10a
4 changed files with 8 additions and 8 deletions
|
@ -134,7 +134,7 @@ Sentences_Init(void)
|
|||
for (i=0; i < c; i++) {
|
||||
/* first entry is the id, prefix with ! as well */
|
||||
if (i==0) {
|
||||
g_sentences[x].m_strID = strcat("!", argv(0));
|
||||
g_sentences[x].m_strID = strtoupper(strcat("!", argv(0)));
|
||||
} else {
|
||||
if (i == 1) {
|
||||
g_sentences[x].m_strSamples = sprintf("%s", argv(i));
|
||||
|
|
|
@ -89,7 +89,7 @@ scripted_sentence::SpawnKey(string strKey, string strValue)
|
|||
m_strSpeaker = strValue;
|
||||
break;
|
||||
case "sentence":
|
||||
m_strSentence = strValue;
|
||||
m_strSentence = strtoupper(strValue);
|
||||
break;
|
||||
case "pitch":
|
||||
m_flPitch = stof(strValue);
|
||||
|
|
|
@ -197,14 +197,14 @@ m_draw(vector screensize)
|
|||
}
|
||||
|
||||
const string ver = "Nuclide (build " __DATE__ ")";
|
||||
drawfont = font_label;
|
||||
drawfont = font_console;
|
||||
|
||||
WLabel_Static(640 - 16 - stringwidth(ver, TRUE, [10,10]),
|
||||
WLabel_Static(640 - 8 - stringwidth(ver, TRUE, [12,12]),
|
||||
466,
|
||||
ver,
|
||||
10, 10,
|
||||
[0.75,0.75,0.75],
|
||||
0.25f, 0, font_label_b);
|
||||
12, 12,
|
||||
[1.0f,1.0f,1.0f],
|
||||
0.5f, 0, font_console);
|
||||
|
||||
main_draw();
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ Sentences_Init(void)
|
|||
g_sentences_count++;
|
||||
#endif
|
||||
|
||||
g_sentences[x] = strcat("!", argv(0));
|
||||
g_sentences[x] = strtoupper(strcat("!", argv(0)));
|
||||
}
|
||||
|
||||
fclose(fs_sentences);
|
||||
|
|
Loading…
Reference in a new issue