equal
deleted
inserted
replaced
99 p->Send_uint64(_network_player_info[player->index].money); |
99 p->Send_uint64(_network_player_info[player->index].money); |
100 p->Send_uint64(_network_player_info[player->index].income); |
100 p->Send_uint64(_network_player_info[player->index].income); |
101 p->Send_uint16(_network_player_info[player->index].performance); |
101 p->Send_uint16(_network_player_info[player->index].performance); |
102 |
102 |
103 /* Send 1 if there is a passord for the company else send 0 */ |
103 /* Send 1 if there is a passord for the company else send 0 */ |
104 p->Send_uint8(StrEmpty(_network_player_info[player->index].password) ? 0 : 1); |
104 p->Send_bool(StrEmpty(_network_player_info[player->index].password)); |
105 |
105 |
106 for (i = 0; i < NETWORK_VEHICLE_TYPES; i++) { |
106 for (i = 0; i < NETWORK_VEHICLE_TYPES; i++) { |
107 p->Send_uint16(_network_player_info[player->index].num_vehicle[i]); |
107 p->Send_uint16(_network_player_info[player->index].num_vehicle[i]); |
108 } |
108 } |
109 |
109 |
501 |
501 |
502 Packet *p = NetworkSend_Init(PACKET_SERVER_CHAT); |
502 Packet *p = NetworkSend_Init(PACKET_SERVER_CHAT); |
503 |
503 |
504 p->Send_uint8 (action); |
504 p->Send_uint8 (action); |
505 p->Send_uint16(client_index); |
505 p->Send_uint16(client_index); |
506 p->Send_uint8 (self_send); |
506 p->Send_bool (self_send); |
507 p->Send_string(msg); |
507 p->Send_string(msg); |
508 |
508 |
509 cs->Send_Packet(p); |
509 cs->Send_Packet(p); |
510 } |
510 } |
511 |
511 |