summaryrefslogtreecommitdiff
path: root/src/error_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-07-08 18:41:50 +0000
committerfrosch <frosch@openttd.org>2012-07-08 18:41:50 +0000
commit73706925d1d429d8edc74f562a2a0f3d4f1b015f (patch)
tree97b9143ca43d7858e4dea78d9d849475ca6a2f99 /src/error_gui.cpp
parent8e170df609310b78221aeca16431bdcdda9c5958 (diff)
downloadopenttd-73706925d1d429d8edc74f562a2a0f3d4f1b015f.tar.xz
(svn r24388) -Fix [FS#5233]: Do not consider not finding a particular base set critical; just load a different one and display an in-game error later on.
Diffstat (limited to 'src/error_gui.cpp')
-rw-r--r--src/error_gui.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/error_gui.cpp b/src/error_gui.cpp
index b054f8834..6c4c2e9c6 100644
--- a/src/error_gui.cpp
+++ b/src/error_gui.cpp
@@ -417,3 +417,13 @@ void ScheduleErrorMessage(ErrorList &datas)
{
_error_list.splice(_error_list.end(), datas);
}
+
+/**
+ * Schedule an error.
+ * Note: This does not try to display the error now. This is useful if the window system is not yet running.
+ * @param data Error message data; cleared afterwards
+ */
+void ScheduleErrorMessage(const ErrorMessageData &data)
+{
+ _error_list.push_back(data);
+}