summaryrefslogtreecommitdiff
path: root/src/error_gui.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-13 12:31:24 +0100
committerPatric Stout <github@truebrain.nl>2021-03-14 11:04:14 +0100
commit4fe222d8536ef7fd9ec71f6f176c661a205bd7d1 (patch)
treeca0ff5e4dfe716a68cdc1b90756f41a3423be9e5 /src/error_gui.cpp
parent22a9d921efa80f09b31afd860dae7ccd569cebf8 (diff)
downloadopenttd-4fe222d8536ef7fd9ec71f6f176c661a205bd7d1.tar.xz
Fix: errors during bootstrap could still show up after bootstrap
For example, if you have a config that defines OpenGFX as baseset but for some reason you have no basesets anymore. In that case bootstrap downloads OpenGFX for you, but it will still show the error that "OpenGFX was not found" after the bootstrap. This was an error generated before the bootstrapped kicked in. Simply muting all errors during bootstrap solves this; as we cannot show them anyway, this is fine. Any errors that remain after bootstrap will be generated again anyway.
Diffstat (limited to 'src/error_gui.cpp')
-rw-r--r--src/error_gui.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp
index c8594e34a..7b7413228 100644
--- a/src/error_gui.cpp
+++ b/src/error_gui.cpp
@@ -396,6 +396,7 @@ void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel
bool no_timeout = wl == WL_CRITICAL;
+ if (_game_mode == GM_BOOTSTRAP) return;
if (_settings_client.gui.errmsg_duration == 0 && !no_timeout) return;
ErrorMessageData data(summary_msg, detailed_msg, no_timeout ? 0 : _settings_client.gui.errmsg_duration, x, y, textref_stack_grffile, textref_stack_size, textref_stack);