network_udp.c
changeset 850 7a9b9f01d5f0
parent 805 175b92d3c196
child 903 a301a264e0fc
equal deleted inserted replaced
849:c3407041774f 850:7a9b9f01d5f0
     1 #include "stdafx.h"
     1 #include "stdafx.h"
     2 #include "network_data.h"
     2 #include "network_data.h"
     3 
     3 
     4 #ifdef ENABLE_NETWORK
     4 #ifdef ENABLE_NETWORK
     5 
     5 
       
     6 #include "map.h"
     6 #include "network_gamelist.h"
     7 #include "network_gamelist.h"
     7 #include "network_udp.h"
     8 #include "network_udp.h"
     8 
     9 
     9 extern void UpdateNetworkGameWindow(bool unselect);
    10 extern void UpdateNetworkGameWindow(bool unselect);
    10 extern void NetworkPopulateCompanyInfo(void);
    11 extern void NetworkPopulateCompanyInfo(void);
    46 
    47 
    47 	packet = NetworkSend_Init(PACKET_UDP_SERVER_RESPONSE);
    48 	packet = NetworkSend_Init(PACKET_UDP_SERVER_RESPONSE);
    48 
    49 
    49 	// Update some game_info
    50 	// Update some game_info
    50 	_network_game_info.game_date = _date;
    51 	_network_game_info.game_date = _date;
       
    52 	_network_game_info.map_width = MapSizeX();
       
    53 	_network_game_info.map_height = MapSizeY();
    51 	_network_game_info.map_set = _opt.landscape;
    54 	_network_game_info.map_set = _opt.landscape;
    52 
    55 
    53 	NetworkSend_uint8 (packet, NETWORK_GAME_INFO_VERSION);
    56 	NetworkSend_uint8 (packet, NETWORK_GAME_INFO_VERSION);
    54 	NetworkSend_string(packet, _network_game_info.server_name);
    57 	NetworkSend_string(packet, _network_game_info.server_name);
    55 	NetworkSend_string(packet, _network_game_info.server_revision);
    58 	NetworkSend_string(packet, _network_game_info.server_revision);