diff options
author | glx22 <glx@openttd.org> | 2021-01-07 00:53:10 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-01-10 14:07:17 +0100 |
commit | 1fb4ed8eef558d13ef6f72253652ce65611e0c4b (patch) | |
tree | 3ffde98a9b1c38350dc57c37a656e253c64d69c7 /src/error.h | |
parent | c0d7949d7c798285cc289bb9c76b4b155256456c (diff) | |
download | openttd-1fb4ed8eef558d13ef6f72253652ce65611e0c4b.tar.xz |
Fix: Use realtime for error message and console backlog timeouts
Diffstat (limited to 'src/error.h')
-rw-r--r-- | src/error.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/error.h b/src/error.h index 8aa8ac225..6dd4b0234 100644 --- a/src/error.h +++ b/src/error.h @@ -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. |