summaryrefslogtreecommitdiff
path: root/src/newgrf_config.cpp
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-07-29 07:51:55 +0000
committerpeter1138 <peter1138@openttd.org>2008-07-29 07:51:55 +0000
commitdcf8420c43cf0f7caf19799dbd0a00a801b92c06 (patch)
tree915aac361d357609129e07ce88e41fedab736267 /src/newgrf_config.cpp
parent72344adce7d1dd8a41d23ee784ee7dc996899935 (diff)
downloadopenttd-dcf8420c43cf0f7caf19799dbd0a00a801b92c06.tar.xz
(svn r13865) -Codechange: Use case-insensitive sort for NewGRF list.
Diffstat (limited to 'src/newgrf_config.cpp')
-rw-r--r--src/newgrf_config.cpp2
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);
}