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
@@ -146,8 +146,8 @@ R_InitParticles
void R_InitParticles(void) {
auto i = common::check_param("-particles");
if (i.has_value() && i.value() < com_argc - 1) {
r_numparticles = atoi(com_argv[i.value() + 1]);
if (i.has_value() && i.value() < common::_argv.size() - 1) {
r_numparticles = atoi(common::_argv[i.value() + 1].c_str());
if (r_numparticles < ABSOLUTE_MIN_PARTICLES)
r_numparticles = ABSOLUTE_MIN_PARTICLES;
else if (r_numparticles > ABSOLUTE_MAX_PARTICLES)