1
0
Fork 0

(svn r1331) Update map size before sending game info

release/0.4.5
tron 2005-01-03 09:14:31 +00:00
parent 29e71638ce
commit 6c4840fa50
1 changed files with 3 additions and 0 deletions

View File

@ -3,6 +3,7 @@
#ifdef ENABLE_NETWORK
#include "map.h"
#include "network_gamelist.h"
#include "network_udp.h"
@ -48,6 +49,8 @@ DEF_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_FIND_SERVER)
// Update some game_info
_network_game_info.game_date = _date;
_network_game_info.map_width = MapSizeX();
_network_game_info.map_height = MapSizeY();
_network_game_info.map_set = _opt.landscape;
NetworkSend_uint8 (packet, NETWORK_GAME_INFO_VERSION);