summaryrefslogtreecommitdiff
path: root/src/fios.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2010-06-05 18:44:31 +0000
committerfrosch <frosch@openttd.org>2010-06-05 18:44:31 +0000
commit1d9a84a934f680094bddc18f730067d757d27444 (patch)
tree5e5ccb19f10ca224ba27b630e4daea0201a226a5 /src/fios.h
parent02276183243e58999acffce2f4a2cf7c391abf4c (diff)
downloadopenttd-1d9a84a934f680094bddc18f730067d757d27444.tar.xz
(svn r19936) -Codechange: If there is an enum, also use it.
Diffstat (limited to 'src/fios.h')
-rw-r--r--src/fios.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/fios.h b/src/fios.h
index 42c50a9ba..c03ed9aab 100644
--- a/src/fios.h
+++ b/src/fios.h
@@ -14,6 +14,7 @@
#include "strings_type.h"
#include "core/smallvec_type.hpp"
+#include "core/enum_type.hpp"
enum FileSlots {
/**
@@ -86,12 +87,13 @@ enum SortingBits {
SORT_BY_DATE = 0,
SORT_BY_NAME = 2
};
+DECLARE_ENUM_AS_BIT_SET(SortingBits)
/* Variables to display file lists */
-extern SmallVector<FiosItem, 32> _fios_items; ///< defined in fios.cpp
+extern SmallVector<FiosItem, 32> _fios_items;
extern SmallFiosItem _file_to_saveload;
-extern SaveLoadDialogMode _saveload_mode; ///< defined in misc_gui.cpp
-extern byte _savegame_sort_order;
+extern SaveLoadDialogMode _saveload_mode;
+extern SortingBits _savegame_sort_order;
/* Launch save/load dialog */
void ShowSaveLoadDialog(SaveLoadDialogMode mode);