summaryrefslogtreecommitdiff
path: root/network_udp.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-14 21:47:35 +0000
committertruelight <truelight@openttd.org>2005-01-14 21:47:35 +0000
commitb33df5936fd09eaab1ae6dccde0768e3197c8888 (patch)
treef260e8c54aa71ae764d546b59880d05829587afd /network_udp.c
parent94c6bdfdaf6dc67d8698c2b0a48e928f72bc3fde (diff)
downloadopenttd-b33df5936fd09eaab1ae6dccde0768e3197c8888.tar.xz
(svn r1510) -Add: Improved Network Lobby GUI: (bociusz)
- Added green dot if company income is positive (else red dot) - Added lock icon if company is password protected
Diffstat (limited to 'network_udp.c')
-rw-r--r--network_udp.c7
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]);