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
+2 -2
View File
@@ -108,8 +108,8 @@ void SV_Init(void) {
for (auto i = 0; i < MAX_MODELS; i++)
sprintf(localmodels[i], "*%i", i);
if (const auto i = common::check_param("-protocol"); i && i < com_argc - 1)
sv_protocol = atoi(com_argv[i.value() + 1]);
if (const auto i = common::check_param("-protocol"); i && i < common::_argv.size() - 1)
sv_protocol = atoi(common::_argv[i.value() + 1].c_str());
switch (sv_protocol) {
case PROTOCOL_NETQUAKE:
p = "NetQuake";