Merge branch 'master' into jgrpp
# Conflicts: # .github/workflows/release-windows.yml # src/company_base.h # src/company_cmd.cpp # src/company_gui.cpp # src/console_cmds.cpp # src/economy.cpp # src/economy_cmd.h # src/fios.h # src/goal.cpp # src/group_gui.cpp # src/network/core/config.h # src/network/network_admin.cpp # src/newgrf_config.cpp # src/os/windows/win32.cpp # src/saveload/afterload.cpp # src/saveload/company_sl.cpp # src/saveload/saveload.cpp # src/saveload/saveload_error.hpp # src/settings_gui.cpp # src/ship_cmd.cpp # src/stdafx.h # src/story.cpp # src/story_base.h # src/string.cpp # src/table/settings/economy_settings.ini # src/tests/CMakeLists.txt # src/tests/math_func.cpp
This commit is contained in:
@@ -711,7 +711,7 @@ public:
|
||||
/* Because there can be multiple grfs with the same name, make sure we checked all grfs with the same name,
|
||||
* before inserting the entry. So insert a new grf at the end of all grfs with the same name, instead of
|
||||
* just after the first with the same name. Avoids doubles in the list. */
|
||||
if (strcasecmp(c->GetName(), d->GetName()) <= 0) {
|
||||
if (StrCompareIgnoreCase(c->GetName(), d->GetName()) <= 0) {
|
||||
stop = true;
|
||||
} else if (stop) {
|
||||
break;
|
||||
@@ -771,7 +771,7 @@ bool GRFFileScanner::AddFile(const std::string &filename, size_t basepath_length
|
||||
*/
|
||||
static bool GRFSorter(GRFConfig * const &c1, GRFConfig * const &c2)
|
||||
{
|
||||
return strnatcmp(c1->GetName(), c2->GetName()) < 0;
|
||||
return StrNaturalCompare(c1->GetName(), c2->GetName()) < 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user