summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-24 22:18:46 +0000
committerrubidium <rubidium@openttd.org>2007-06-24 22:18:46 +0000
commite0a9a7d3888668c81e56e626e262d435c38c31b2 (patch)
tree6751f35de347591e01afbc331f471c81e3ccbf7e /src
parentb8d37ed4b788e8159bf27323bbf71833db58017c (diff)
downloadopenttd-e0a9a7d3888668c81e56e626e262d435c38c31b2.tar.xz
(svn r10313) -Fix (r8546): value for password "protected" was sent toggled for UDP packets, i.e. unpassworded companies showed up passworded and vice versa.
Diffstat (limited to 'src')
-rw-r--r--src/network/network_udp.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/network_udp.cpp b/src/network/network_udp.cpp
index eeef5f5a7..496604f3b 100644
--- a/src/network/network_udp.cpp
+++ b/src/network/network_udp.cpp
@@ -124,7 +124,7 @@ DEF_UDP_RECEIVE_COMMAND(Server, PACKET_UDP_CLIENT_DETAIL_INFO)
packet.Send_uint16(_network_player_info[player->index].performance);
/* Send 1 if there is a passord for the company else send 0 */
- packet.Send_bool (StrEmpty(_network_player_info[player->index].password));
+ packet.Send_bool (!StrEmpty(_network_player_info[player->index].password));
for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
packet.Send_uint16(_network_player_info[player->index].num_vehicle[i]);