diff options
author | peter1138 <peter1138@openttd.org> | 2008-07-29 07:51:55 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2008-07-29 07:51:55 +0000 |
commit | dcf8420c43cf0f7caf19799dbd0a00a801b92c06 (patch) | |
tree | 915aac361d357609129e07ce88e41fedab736267 | |
parent | 72344adce7d1dd8a41d23ee784ee7dc996899935 (diff) | |
download | openttd-dcf8420c43cf0f7caf19799dbd0a00a801b92c06.tar.xz |
(svn r13865) -Codechange: Use case-insensitive sort for NewGRF list.
-rw-r--r-- | src/newgrf_config.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 312472bd1..a8aeb2f63 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -381,7 +381,7 @@ static int CDECL GRFSorter(const void *p1, const void *p2) const GRFConfig *c1 = *(const GRFConfig **)p1; const GRFConfig *c2 = *(const GRFConfig **)p2; - return strcmp(c1->name != NULL ? c1->name : c1->filename, + return strcasecmp(c1->name != NULL ? c1->name : c1->filename, c2->name != NULL ? c2->name : c2->filename); } |