Change up strcasecmp/strncasecmp to be more C++y

This commit is contained in:
iikorni
2026-08-30 16:40:12 -05:00
parent 7a697986c6
commit da2a9a8fbc
32 changed files with 351 additions and 790 deletions
+3 -3
View File
@@ -132,10 +132,10 @@ void CFG_ReadCvarOverrides (const char **vars, int num_vars)
{
q_strlcpy (&buff[1], vars[i], sizeof(buff) - 1);
j = common::check_param(buff).has_value();
if (j != 0 && j < com_argc - 1)
if (j != 0 && j < common::_argv.size() - 1)
{
if (com_argv[j + 1][0] != '-' && com_argv[j + 1][0] != '+')
convar::set(vars[i], com_argv[j + 1]);
if (common::_argv[j + 1][0] != '-' && common::_argv[j + 1][0] != '+')
convar::set(vars[i], common::_argv[j + 1]);
}
}
}