mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-16 09:21:36 +00:00
strcmpi = bad
git-svn-id: https://svn.eduke32.com/eduke32@592 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
a8a675634e
commit
701a18909c
1 changed files with 2 additions and 2 deletions
|
@ -947,7 +947,7 @@ static int osdcmd_bind(const osdfuncparm_t *parm)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
if (parm->numparms==1&&!strcmpi(parm->parms[0],"showkeys"))
|
if (parm->numparms==1&&!Bstrcasecmp(parm->parms[0],"showkeys"))
|
||||||
{
|
{
|
||||||
for(i=0;keynames[i].name;i++)OSD_Printf("%s\n",keynames[i].name);
|
for(i=0;keynames[i].name;i++)OSD_Printf("%s\n",keynames[i].name);
|
||||||
return OSDCMD_OK;
|
return OSDCMD_OK;
|
||||||
|
@ -961,7 +961,7 @@ static int osdcmd_bind(const osdfuncparm_t *parm)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parm->numparms < 2) return OSDCMD_SHOWHELP;
|
if (parm->numparms < 2) return OSDCMD_SHOWHELP;
|
||||||
for(i=0;keynames[i].name;i++)if(!strcmpi(parm->parms[0],keynames[i].name))break;
|
for(i=0;keynames[i].name;i++)if(!Bstrcasecmp(parm->parms[0],keynames[i].name))break;
|
||||||
if (!keynames[i].name) return OSDCMD_SHOWHELP;
|
if (!keynames[i].name) return OSDCMD_SHOWHELP;
|
||||||
|
|
||||||
Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[1], MAXSCRIPTFILENAMELENGTH-1);
|
Bstrncpy(boundkeys[keynames[i].id].name,parm->parms[1], MAXSCRIPTFILENAMELENGTH-1);
|
||||||
|
|
Loading…
Reference in a new issue