diff options
Diffstat (limited to 'network_udp.c')
-rw-r--r-- | network_udp.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/network_udp.c b/network_udp.c index 0d62dec3a..2505ab01e 100644 --- a/network_udp.c +++ b/network_udp.c @@ -169,6 +169,13 @@ DEF_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_DETAIL_INFO) NetworkSend_uint64(packet, _network_player_info[player->index].income); NetworkSend_uint16(packet, _network_player_info[player->index].performance); + /* Send 1 if there is a passord for the company else send 0 */ + if (_network_player_info[player->index].password[0] != '\0') { + NetworkSend_uint8 (p, 1); + } else { + NetworkSend_uint8 (p, 0); + } + for (i = 0; i < NETWORK_VEHICLE_TYPES; i++) NetworkSend_uint16(packet, _network_player_info[player->index].num_vehicle[i]); |