Change up strcasecmp/strncasecmp to be more C++y
This commit is contained in:
+2
-2
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user