mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 13:40:59 +00:00
Sort the mod list case insensitive.
This commit is contained in:
parent
ceee1c1d32
commit
5933b64f77
1 changed files with 3 additions and 3 deletions
|
@ -1379,16 +1379,16 @@ Q_sort_modcmp(const void *p1, const void *p2)
|
||||||
|
|
||||||
for (unsigned short int i = 0; i < first_mods_qty; i++)
|
for (unsigned short int i = 0; i < first_mods_qty; i++)
|
||||||
{
|
{
|
||||||
if (!strcmp(first_mods[i], s1))
|
if (!Q_stricmp(first_mods[i], s1))
|
||||||
{
|
{
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (!strcmp(first_mods[i], s2))
|
if (!Q_stricmp(first_mods[i], s2))
|
||||||
{
|
{
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return strcmp(s1, s2);
|
return Q_stricmp(s1, s2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue