network_udp.c
changeset 1011 2587838541bf
parent 985 ef5ba72aca89
child 1019 6363b8a4273e
--- a/network_udp.c	Fri Jan 14 19:44:42 2005 +0000
+++ b/network_udp.c	Fri Jan 14 21:47:35 2005 +0000
@@ -169,6 +169,13 @@
 		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]);