Marginally less sucky version of a function that completely sucks

git-svn-id: https://svn.eduke32.com/eduke32@7367 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2019-03-02 23:21:25 +00:00
parent db51740d3d
commit 6d9ecbcfb7

View file

@ -65,25 +65,16 @@ int32_t CONFIG_AnalogNameToNum(const char *func)
{
if (!func)
return -1;
if (!Bstrcasecmp(func,"analog_turning"))
{
else if (!Bstrcasecmp(func, "analog_turning"))
return analog_turning;
}
if (!Bstrcasecmp(func,"analog_strafing"))
{
else if (!Bstrcasecmp(func, "analog_strafing"))
return analog_strafing;
}
if (!Bstrcasecmp(func,"analog_moving"))
{
else if (!Bstrcasecmp(func, "analog_moving"))
return analog_moving;
}
if (!Bstrcasecmp(func,"analog_lookingupanddown"))
{
else if (!Bstrcasecmp(func, "analog_lookingupanddown"))
return analog_lookingupanddown;
}
return -1;
else
return -1;
}