diff options
author | rubidium <rubidium@openttd.org> | 2011-05-13 20:07:57 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-05-13 20:07:57 +0000 |
commit | 772fd8f6b5c67f556325b857223d18a887c040fc (patch) | |
tree | cd3d040d96bb429c2f7bbb6753c2744f6b69f85b /src/screenshot.cpp | |
parent | 70eae3a7a39c4762e67a65bef270723495192c04 (diff) | |
download | openttd-772fd8f6b5c67f556325b857223d18a887c040fc.tar.xz |
(svn r22450) -Fix [FS#4610]: Don't "log" the NewGRFs in the screenshot when in the menu
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp index 46f54360d..9c4fcd1aa 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -281,7 +281,7 @@ static bool MakePNGImage(const char *name, ScreenshotCallback *callb, void *user char *p = buf; p += seprintf(p, lastof(buf), "Graphics set: %s (%u)\n", BaseGraphics::GetUsedSet()->name, BaseGraphics::GetUsedSet()->version); p = strecpy(p, "NewGRFs:\n", lastof(buf)); - for (const GRFConfig *c = _grfconfig; c != NULL; c = c->next) { + for (const GRFConfig *c = _game_mode == GM_MENU ? NULL : _grfconfig; c != NULL; c = c->next) { p += seprintf(p, lastof(buf), "%08X ", BSWAP32(c->ident.grfid)); p = md5sumToString(p, lastof(buf), c->ident.md5sum); p += seprintf(p, lastof(buf), " %s\n", c->filename); |