network_server.c
changeset 1011 2587838541bf
parent 970 492ca84ecc6c
child 1017 608592d4d7a6
equal deleted inserted replaced
1010:17470a8e5eb7 1011:2587838541bf
    99 		NetworkSend_uint8 (p, _network_player_info[player->index].inaugurated_year);
    99 		NetworkSend_uint8 (p, _network_player_info[player->index].inaugurated_year);
   100 		NetworkSend_uint64(p, _network_player_info[player->index].company_value);
   100 		NetworkSend_uint64(p, _network_player_info[player->index].company_value);
   101 		NetworkSend_uint64(p, _network_player_info[player->index].money);
   101 		NetworkSend_uint64(p, _network_player_info[player->index].money);
   102 		NetworkSend_uint64(p, _network_player_info[player->index].income);
   102 		NetworkSend_uint64(p, _network_player_info[player->index].income);
   103 		NetworkSend_uint16(p, _network_player_info[player->index].performance);
   103 		NetworkSend_uint16(p, _network_player_info[player->index].performance);
       
   104 
       
   105 		/* Send 1 if there is a passord for the company else send 0 */
       
   106 		if (_network_player_info[player->index].password[0] != '\0') {
       
   107 			NetworkSend_uint8 (p, 1);
       
   108 		} else {
       
   109 			NetworkSend_uint8 (p, 0);
       
   110 		}
   104 
   111 
   105 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
   112 		for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
   106 			NetworkSend_uint16(p, _network_player_info[player->index].num_vehicle[i]);
   113 			NetworkSend_uint16(p, _network_player_info[player->index].num_vehicle[i]);
   107 
   114 
   108 		for (i = 0; i < NETWORK_STATION_TYPES; i++)
   115 		for (i = 0; i < NETWORK_STATION_TYPES; i++)