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 | b49814c537b4646c5994c0f52b6d7964081a8505 (patch) | |
tree | 915aac361d357609129e07ce88e41fedab736267 | |
parent | ec58ec4a739cfccdfc8246b9028b3cec2d30f073 (diff) | |
download | openttd-b49814c537b4646c5994c0f52b6d7964081a8505.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); } |