src/network/network_client.cpp
changeset 6169 31cdbb4845f1
parent 6153 2ecdbf81caa7
child 6294 6c74bf9cc5a4
child 6573 7624f942237f
equal deleted inserted replaced
6168:b587bfc4e44e 6169:31cdbb4845f1
   312 		_network_player_info[current].inaugurated_year = p->Recv_uint32();
   312 		_network_player_info[current].inaugurated_year = p->Recv_uint32();
   313 		_network_player_info[current].company_value    = p->Recv_uint64();
   313 		_network_player_info[current].company_value    = p->Recv_uint64();
   314 		_network_player_info[current].money            = p->Recv_uint64();
   314 		_network_player_info[current].money            = p->Recv_uint64();
   315 		_network_player_info[current].income           = p->Recv_uint64();
   315 		_network_player_info[current].income           = p->Recv_uint64();
   316 		_network_player_info[current].performance      = p->Recv_uint16();
   316 		_network_player_info[current].performance      = p->Recv_uint16();
   317 		_network_player_info[current].use_password     = p->Recv_uint8();
   317 		_network_player_info[current].use_password     = p->Recv_bool();
   318 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
   318 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
   319 			_network_player_info[current].num_vehicle[i] = p->Recv_uint16();
   319 			_network_player_info[current].num_vehicle[i] = p->Recv_uint16();
   320 		for (i = 0; i < NETWORK_STATION_TYPES; i++)
   320 		for (i = 0; i < NETWORK_STATION_TYPES; i++)
   321 			_network_player_info[current].num_station[i] = p->Recv_uint16();
   321 			_network_player_info[current].num_station[i] = p->Recv_uint16();
   322 
   322 
   653 	char name[NETWORK_NAME_LENGTH], msg[MAX_TEXT_MSG_LEN];
   653 	char name[NETWORK_NAME_LENGTH], msg[MAX_TEXT_MSG_LEN];
   654 	const NetworkClientInfo *ci = NULL, *ci_to;
   654 	const NetworkClientInfo *ci = NULL, *ci_to;
   655 
   655 
   656 	NetworkAction action = (NetworkAction)p->Recv_uint8();
   656 	NetworkAction action = (NetworkAction)p->Recv_uint8();
   657 	uint16 index = p->Recv_uint16();
   657 	uint16 index = p->Recv_uint16();
   658 	bool self_send = (p->Recv_uint8() != 0);
   658 	bool self_send = p->Recv_bool();
   659 	p->Recv_string(msg, MAX_TEXT_MSG_LEN);
   659 	p->Recv_string(msg, MAX_TEXT_MSG_LEN);
   660 
   660 
   661 	ci_to = NetworkFindClientInfoFromIndex(index);
   661 	ci_to = NetworkFindClientInfoFromIndex(index);
   662 	if (ci_to == NULL) return NETWORK_RECV_STATUS_OKAY;
   662 	if (ci_to == NULL) return NETWORK_RECV_STATUS_OKAY;
   663 
   663