network_udp.c
changeset 1186 7b36d3daa39a
parent 1019 6363b8a4273e
child 1299 0a6510cc889b
equal deleted inserted replaced
1185:08d48bad089c 1186:7b36d3daa39a
   169 		NetworkSend_uint64(packet, _network_player_info[player->index].income);
   169 		NetworkSend_uint64(packet, _network_player_info[player->index].income);
   170 		NetworkSend_uint16(packet, _network_player_info[player->index].performance);
   170 		NetworkSend_uint16(packet, _network_player_info[player->index].performance);
   171 
   171 
   172                 /* Send 1 if there is a passord for the company else send 0 */
   172                 /* Send 1 if there is a passord for the company else send 0 */
   173 		if (_network_player_info[player->index].password[0] != '\0') {
   173 		if (_network_player_info[player->index].password[0] != '\0') {
   174 			NetworkSend_uint8 (p, 1);
   174 			NetworkSend_uint8 (packet, 1);
   175 		} else {
   175 		} else {
   176 			NetworkSend_uint8 (p, 0);
   176 			NetworkSend_uint8 (packet, 0);
   177 		}
   177 		}
   178 
   178 
   179 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
   179 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
   180 			NetworkSend_uint16(packet, _network_player_info[player->index].num_vehicle[i]);
   180 			NetworkSend_uint16(packet, _network_player_info[player->index].num_vehicle[i]);
   181 
   181