mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-13 07:21:31 +00:00
host_cmd.c (Modlist_Init): fix the return value check for Q_strcasecmp().
git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@89 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
28c4c3bfe5
commit
b15b30ec6f
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ void Modlist_Init (void)
|
||||||
{
|
{
|
||||||
if ((strcmp(mod_dir_t->d_name, ".") == 0) || (strcmp(mod_dir_t->d_name, "..") == 0))
|
if ((strcmp(mod_dir_t->d_name, ".") == 0) || (strcmp(mod_dir_t->d_name, "..") == 0))
|
||||||
continue;
|
continue;
|
||||||
if (Q_strcasecmp(mod_dir_t->d_name, "progs.dat") != -1)
|
if (Q_strcasecmp(mod_dir_t->d_name, "progs.dat") == 0)
|
||||||
progs_found = true;
|
progs_found = true;
|
||||||
if (strstr(mod_dir_t->d_name, ".pak") || strstr(mod_dir_t->d_name, ".PAK"))
|
if (strstr(mod_dir_t->d_name, ".pak") || strstr(mod_dir_t->d_name, ".PAK"))
|
||||||
pak_found = true;
|
pak_found = true;
|
||||||
|
|
Loading…
Reference in a new issue