summaryrefslogtreecommitdiff
path: root/network_gamelist.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-12-18 12:26:55 +0000
committerrubidium <rubidium@openttd.org>2006-12-18 12:26:55 +0000
commit32db875d978fd59c6dc941c61d331d4a1b20a24a (patch)
tree5c4580a0208b984837b37eddd6bec260cc6587cd /network_gamelist.c
parentf010066c1b43489cc2e88df038c6c3e568114738 (diff)
downloadopenttd-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 'network_gamelist.c')
-rw-r--r--network_gamelist.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/network_gamelist.c b/network_gamelist.c
index 57f24b281..f52272307 100644
--- a/network_gamelist.c
+++ b/network_gamelist.c
@@ -5,6 +5,7 @@
#include "stdafx.h"
#include "debug.h"
#include "network_data.h"
+#include "newgrf_config.h"
// This file handles the GameList
// Also, it handles the request to a server for data about the server
@@ -57,6 +58,9 @@ void NetworkGameListRemoveItem(NetworkGameList *remove)
prev_item->next = remove->next;
}
+ /* Remove GRFConfig information */
+ ClearGRFConfigList(remove->info.grfconfig);
+
free(remove);
DEBUG(net, 4) ("[NET][GameList] Removed server from list");
UpdateNetworkGameWindow(false);