equal
deleted
inserted
replaced
250 /* Update the documentation in udp.h on changes |
250 /* Update the documentation in udp.h on changes |
251 * to the NetworkGameInfo wire-protocol! */ |
251 * to the NetworkGameInfo wire-protocol! */ |
252 |
252 |
253 switch (info->game_info_version) { |
253 switch (info->game_info_version) { |
254 case 4: { |
254 case 4: { |
255 GRFConfig *c, **dst = &info->grfconfig; |
255 GRFConfig **dst = &info->grfconfig; |
256 uint i; |
256 uint i; |
257 uint num_grfs = NetworkRecv_uint8(cs, p); |
257 uint num_grfs = NetworkRecv_uint8(cs, p); |
258 |
258 |
259 for (i = 0; i < num_grfs; i++) { |
259 for (i = 0; i < num_grfs; i++) { |
260 CallocT(&c, 1); |
260 GRFConfig *c = CallocT<GRFConfig>(1); |
261 NetworkRecv_GRFIdentifier(cs, p, c); |
261 NetworkRecv_GRFIdentifier(cs, p, c); |
262 HandleIncomingNetworkGameInfoGRFConfig(c); |
262 HandleIncomingNetworkGameInfoGRFConfig(c); |
263 |
263 |
264 /* Append GRFConfig to the list */ |
264 /* Append GRFConfig to the list */ |
265 *dst = c; |
265 *dst = c; |