Case insentive comparison like the game does :/

This commit is contained in:
Diavolo 2022-04-10 15:02:25 +02:00
parent 0f1c2c0195
commit 17059c9ca3
No known key found for this signature in database
GPG Key ID: FA77F074E98D98A5

View File

@ -134,7 +134,7 @@ namespace Components
char out[1024] = {0}; // 1024 is the max for a string in this SL system
bool changed = false;
auto i = 0u;
size_t i = 0;
while (i < sizeof(out))
{
const auto value = *string;
@ -176,7 +176,7 @@ namespace Components
const auto value1 = Game::Scr_GetConstString(0);
const auto value2 = Game::Scr_GetConstString(1);
const auto result = std::strcmp(Game::SL_ConvertToString(value1),
const auto result = _stricmp(Game::SL_ConvertToString(value1),
Game::SL_ConvertToString(value2));
Game::Scr_AddInt(result);