From ce9b06aa4ce451e3155e8c717b3a4899a1f24b0e Mon Sep 17 00:00:00 2001 From: frosch Date: Wed, 11 May 2011 20:20:21 +0000 Subject: [PATCH] (svn r22442) -Fix: Do not popup fatal NewGRF error messages in the intro screen. The GRFs are not going to be activated there anyway and the GRF settings GUI will not display the errors either. --- src/newgrf_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 398f3c4bd1..7e9e1f693b 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -34,6 +34,9 @@ */ void ShowNewGRFError() { + /* Do not show errors when entering the main screen */ + if (_game_mode == GM_MENU) return; + for (const GRFConfig *c = _grfconfig; c != NULL; c = c->next) { /* We only want to show fatal errors */ if (c->error == NULL || c->error->severity != STR_NEWGRF_ERROR_MSG_FATAL) continue;