summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-05-11 20:20:21 +0000
committerfrosch <frosch@openttd.org>2011-05-11 20:20:21 +0000
commitb6c4832b1e81a74521ad9eebd6c111eee239112c (patch)
treeca03f0c54c08399d5cbb5742f0163e6c2bda4331 /src
parentc435fa0f65258b6ed53316a753493f1eccd13396 (diff)
downloadopenttd-b6c4832b1e81a74521ad9eebd6c111eee239112c.tar.xz
(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.
Diffstat (limited to 'src')
-rw-r--r--src/newgrf_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp
index 398f3c4bd..7e9e1f693 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;