diff options
author | rubidium <rubidium@openttd.org> | 2006-12-18 12:26:55 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-12-18 12:26:55 +0000 |
commit | 32db875d978fd59c6dc941c61d331d4a1b20a24a (patch) | |
tree | 5c4580a0208b984837b37eddd6bec260cc6587cd /newgrf_gui.c | |
parent | f010066c1b43489cc2e88df038c6c3e568114738 (diff) | |
download | openttd-32db875d978fd59c6dc941c61d331d4a1b20a24a.tar.xz |
(svn r7505) -Feature: show NewGRFs used on a game server, show which NewGRFs you do and do not have.
-Feature: show NewGRF compatability of network games in the Game List window; a green square if you got the same OpenTTD version and have the needed NewGRF, a red square if the version does not match and a yellow square if the version matches, but the client is missing at least one of the NewGRFs.
Diffstat (limited to 'newgrf_gui.c')
-rw-r--r-- | newgrf_gui.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/newgrf_gui.c b/newgrf_gui.c index b31c0b177..1b01a1a5a 100644 --- a/newgrf_gui.c +++ b/newgrf_gui.c @@ -43,9 +43,11 @@ static void ShowNewGRFInfo(const GRFConfig *c, uint x, uint y, uint w, bool show char *s; uint i; - /* Draw filename */ - SetDParamStr(0, c->filename); - y += DrawStringMultiLine(x, y, STR_NEWGRF_FILENAME, w); + /* Draw filename or not if it is not known (GRF sent over internet) */ + if (c->filename != NULL) { + SetDParamStr(0, c->filename); + y += DrawStringMultiLine(x, y, STR_NEWGRF_FILENAME, w); + } /* Prepare and draw GRF ID */ snprintf(buff, lengthof(buff), "%08X", (uint32)BSWAP32(c->grfid)); |