(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.

This commit is contained in:
frosch
2011-05-11 20:20:21 +00:00
parent ccf2301a0c
commit ce9b06aa4c

View File

@@ -34,6 +34,9 @@
*/ */
void ShowNewGRFError() 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) { for (const GRFConfig *c = _grfconfig; c != NULL; c = c->next) {
/* We only want to show fatal errors */ /* We only want to show fatal errors */
if (c->error == NULL || c->error->severity != STR_NEWGRF_ERROR_MSG_FATAL) continue; if (c->error == NULL || c->error->severity != STR_NEWGRF_ERROR_MSG_FATAL) continue;