summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4b4f3cf)
raw | patch | inline | side by side (parent: 4b4f3cf)
author | Stas'M <x86corez@gmail.com> | |
Fri, 12 Jan 2018 21:49:35 +0000 (00:49 +0300) | ||
committer | Stas'M <x86corez@gmail.com> | |
Fri, 12 Jan 2018 21:49:35 +0000 (00:49 +0300) |
src/game/g_game.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 6d5717cbc99520a13079b81d6076320e822d6142..b1f5f9fe1955f1f85dac4e02ba05345d9bd298f0 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
gChatSounds[i].Sound.SetByName('SOUND_CHAT_MACRO' + IntToStr(i));
SetLength(gChatSounds[i].Tags, tags);
for j := 0 to tags - 1 do
- gChatSounds[i].Tags[j] := AnsiLowerCase(cfg.ReadStr(IntToStr(i), 'Tag' + IntToStr(j), ''));
+ gChatSounds[i].Tags[j] := toLowerCase1251(cfg.ReadStr(IntToStr(i), 'Tag' + IntToStr(j), ''));
gChatSounds[i].FullWord := cfg.ReadBool(IntToStr(i), 'FullWord', False);
end;
// remove player name
Delete(Text, 1, Pos(': ', Text) + 2 - 1);
// for FullWord check
- Text := AnsiLowerCase(' ' + Text + ' ');
+ Text := toLowerCase1251(' ' + Text + ' ');
fpText := FilterPunctuation(Text);
for i := 0 to Length(gChatSounds) - 1 do