@@ -11,12 +11,13 @@
#define SORTLIST_TYPE_H
#include "core/enum_type.hpp"
#include "core/bitmath_func.hpp"
#include "core/mem_func.hpp"
#include "date_type.h"
#include "timer/timer_game_tick.h"
/** Flags of the sort list. */
enum SortListFlags {
VL_NONE = 0, ///< no sort
VL_DESC = 1 << 0, ///< sort descending or ascending
VL_RESORT = 1 << 1, ///< instruct the code to resort the list in the next loop
@@ -69,13 +70,13 @@ protected:
/**
* Reset the resort timer
*/
void ResetResortTimer()
{
/* Resort every 10 days */
this->resort_timer = DAY_TICKS * 10;
this->resort_timer = Ticks::DAY_TICKS * 10;
}
public:
GUIList() :
sort_func_list(nullptr),
filter_func_list(nullptr),