Change up strcasecmp/strncasecmp to be more C++y
This commit is contained in:
+5
-5
@@ -172,7 +172,7 @@ void S_Init(void) {
|
||||
snd_mixspeed.inscribe();
|
||||
snd_filterquality.inscribe();
|
||||
|
||||
if (safemode || common::check_param("-nosound").has_value())
|
||||
if (common::safe_mode || common::check_param("-nosound").has_value())
|
||||
return;
|
||||
|
||||
console::info("\nSound Initialization\n");
|
||||
@@ -184,13 +184,13 @@ void S_Init(void) {
|
||||
command::add("soundinfo", S_SoundInfo_f);
|
||||
|
||||
auto i = common::check_param("-sndspeed");
|
||||
if (i.has_value() && i.value() < com_argc - 1) {
|
||||
sndspeed.set(com_argv[i.value() + 1]);
|
||||
if (i.has_value() && i.value() < common::_argv.size() - 1) {
|
||||
sndspeed.set(common::_argv[i.value() + 1]);
|
||||
}
|
||||
|
||||
i = common::check_param("-mixspeed");
|
||||
if (i.has_value() && i.value() < com_argc - 1) {
|
||||
snd_mixspeed.set(com_argv[i.value() + 1]);
|
||||
if (i.has_value() && i.value() < common::_argv.size() - 1) {
|
||||
snd_mixspeed.set(common::_argv[i.value() + 1]);
|
||||
}
|
||||
|
||||
if (host_parms->memsize < 0x800000) {
|
||||
|
||||
Reference in New Issue
Block a user