mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r10313) -Fix (r8546): value for password "protected" was sent toggled for UDP packets, i.e. unpassworded companies showed up passworded and vice versa.
This commit is contained in:
parent
b8d37ed4b7
commit
e0a9a7d388
@ -124,7 +124,7 @@ DEF_UDP_RECEIVE_COMMAND(Server, PACKET_UDP_CLIENT_DETAIL_INFO)
|
|||||||
packet.Send_uint16(_network_player_info[player->index].performance);
|
packet.Send_uint16(_network_player_info[player->index].performance);
|
||||||
|
|
||||||
/* Send 1 if there is a passord for the company else send 0 */
|
/* 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++)
|
for (i = 0; i < NETWORK_VEHICLE_TYPES; i++)
|
||||||
packet.Send_uint16(_network_player_info[player->index].num_vehicle[i]);
|
packet.Send_uint16(_network_player_info[player->index].num_vehicle[i]);
|
||||||
|
Loading…
Reference in New Issue
Block a user