diff options
author | frosch <frosch@openttd.org> | 2010-06-05 18:44:31 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-06-05 18:44:31 +0000 |
commit | 1d9a84a934f680094bddc18f730067d757d27444 (patch) | |
tree | 5e5ccb19f10ca224ba27b630e4daea0201a226a5 /src/fios.cpp | |
parent | 02276183243e58999acffce2f4a2cf7c391abf4c (diff) | |
download | openttd-1d9a84a934f680094bddc18f730067d757d27444.tar.xz |
(svn r19936) -Codechange: If there is an enum, also use it.
Diffstat (limited to 'src/fios.cpp')
-rw-r--r-- | src/fios.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fios.cpp b/src/fios.cpp index e58ddd9bd..398c7c7e3 100644 --- a/src/fios.cpp +++ b/src/fios.cpp @@ -32,6 +32,7 @@ SmallVector<FiosItem, 32> _fios_items; static char *_fios_path; SmallFiosItem _file_to_saveload; +SortingBits _savegame_sort_order = SORT_BY_DATE | SORT_DESCENDING; /* OS-specific functions are taken from their respective files (win32/unix/os2 .c) */ extern bool FiosIsRoot(const char *path); @@ -306,7 +307,7 @@ static void FiosGetFileList(SaveLoadDialogMode mode, fios_getlist_callback_proc /* Sort the subdirs always by name, ascending, remember user-sorting order */ { - byte order = _savegame_sort_order; + SortingBits order = _savegame_sort_order; _savegame_sort_order = SORT_BY_NAME | SORT_ASCENDING; QSortT(_fios_items.Begin(), _fios_items.Length(), CompareFiosItems); _savegame_sort_order = order; |