mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
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:
parent
db51740d3d
commit
6d9ecbcfb7
1 changed files with 6 additions and 15 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue