Mercurial > hg > openttd
changeset 17670:20f6e34b8ff6 draft
(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.
author | frosch <frosch@openttd.org> |
---|---|
date | Wed, 11 May 2011 20:20:21 +0000 |
parents | d27c1cdf5324 |
children | bfc4a902068f |
files | src/newgrf_gui.cpp |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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;