(svn r10313) -Fix (r8546): value for password "protected" was sent toggled for UDP packets, i.e. unpassworded companies showed up passworded and vice versa.
authorrubidium
Sun, 24 Jun 2007 22:18:46 +0000
changeset 7544 74528540f256
parent 7543 c7af23e43b7e
child 7545 9a4834d48970
(svn r10313) -Fix (r8546): value for password "protected" was sent toggled for UDP packets, i.e. unpassworded companies showed up passworded and vice versa.
src/network/network_udp.cpp
--- a/src/network/network_udp.cpp	Sun Jun 24 21:58:05 2007 +0000
+++ b/src/network/network_udp.cpp	Sun Jun 24 22:18:46 2007 +0000
@@ -124,7 +124,7 @@
 		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]);