Fix: Use realtime for error message and console backlog timeouts

This commit is contained in:
glx22
2021-01-07 00:53:10 +01:00
committed by Patric Stout
parent c0d7949d7c
commit 1fb4ed8eef
3 changed files with 17 additions and 12 deletions

View File

@@ -13,6 +13,7 @@
#include "strings_type.h"
#include "company_type.h"
#include "core/geometry_type.hpp"
#include "guitimer_func.h"
struct GRFFile;
@@ -27,7 +28,7 @@ enum WarningLevel {
/** The data of the error message. */
class ErrorMessageData {
protected:
uint duration; ///< Length of display of the message. 0 means forever,
GUITimer display_timer; ///< Timer before closing the message.
uint64 decode_params[20]; ///< Parameters of the message strings.
const char *strings[20]; ///< Copies of raw strings that were used.
const GRFFile *textref_stack_grffile; ///< NewGRF that filled the #TextRefStack for the error message.