src/network/network_client.cpp
changeset 9664 469dad45a4d3
parent 9659 187142ff9b6c
child 9896 19aa91881726
equal deleted inserted replaced
9663:bcc853b3d1ac 9664:469dad45a4d3
   365 
   365 
   366 		// There is no data at all..
   366 		// There is no data at all..
   367 		if (total == 0) return NETWORK_RECV_STATUS_CLOSE_QUERY;
   367 		if (total == 0) return NETWORK_RECV_STATUS_CLOSE_QUERY;
   368 
   368 
   369 		current = (Owner)p->Recv_uint8();
   369 		current = (Owner)p->Recv_uint8();
   370 		if (!IsValidPlayerID(current)) return NETWORK_RECV_STATUS_CLOSE_QUERY;
   370 		if (current >= MAX_PLAYERS) return NETWORK_RECV_STATUS_CLOSE_QUERY;
   371 
   371 
   372 		p->Recv_string(_network_player_info[current].company_name, sizeof(_network_player_info[current].company_name));
   372 		p->Recv_string(_network_player_info[current].company_name, sizeof(_network_player_info[current].company_name));
   373 		_network_player_info[current].inaugurated_year = p->Recv_uint32();
   373 		_network_player_info[current].inaugurated_year = p->Recv_uint32();
   374 		_network_player_info[current].company_value    = p->Recv_uint64();
   374 		_network_player_info[current].company_value    = p->Recv_uint64();
   375 		_network_player_info[current].money            = p->Recv_uint64();
   375 		_network_player_info[current].money            = p->Recv_uint64();