equal
deleted
inserted
replaced
3 #ifdef ENABLE_NETWORK |
3 #ifdef ENABLE_NETWORK |
4 |
4 |
5 #include "stdafx.h" |
5 #include "stdafx.h" |
6 #include "debug.h" |
6 #include "debug.h" |
7 #include "network_data.h" |
7 #include "network_data.h" |
|
8 #include "newgrf_config.h" |
8 |
9 |
9 // This file handles the GameList |
10 // This file handles the GameList |
10 // Also, it handles the request to a server for data about the server |
11 // Also, it handles the request to a server for data about the server |
11 |
12 |
12 /** Add a new item to the linked gamelist. If the IP and Port match |
13 /** Add a new item to the linked gamelist. If the IP and Port match |
55 _network_game_list = remove->next; |
56 _network_game_list = remove->next; |
56 } else { |
57 } else { |
57 prev_item->next = remove->next; |
58 prev_item->next = remove->next; |
58 } |
59 } |
59 |
60 |
|
61 /* Remove GRFConfig information */ |
|
62 ClearGRFConfigList(remove->info.grfconfig); |
|
63 |
60 free(remove); |
64 free(remove); |
61 DEBUG(net, 4) ("[NET][GameList] Removed server from list"); |
65 DEBUG(net, 4) ("[NET][GameList] Removed server from list"); |
62 UpdateNetworkGameWindow(false); |
66 UpdateNetworkGameWindow(false); |
63 return; |
67 return; |
64 } |
68 } |