diff options
author | rubidium <rubidium@openttd.org> | 2007-02-02 23:16:58 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-02-02 23:16:58 +0000 |
commit | 500f9a971ac2d1a723fceaf499117de85396ff65 (patch) | |
tree | ece046363ec9db44c4f305a66b7863bd5113cfb2 /src/network/network_client.cpp | |
parent | 9ddd227eb3757473bce23b4cafec894a4e4eaa36 (diff) | |
download | openttd-500f9a971ac2d1a723fceaf499117de85396ff65.tar.xz |
(svn r8546) -Codechange: add a seperate (wrapper) functions to send/receive booleans.
Diffstat (limited to 'src/network/network_client.cpp')
-rw-r--r-- | src/network/network_client.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_client.cpp b/src/network/network_client.cpp index df4e2a646..8c0db339f 100644 --- a/src/network/network_client.cpp +++ b/src/network/network_client.cpp @@ -314,7 +314,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_COMPANY_INFO) _network_player_info[current].money = p->Recv_uint64(); _network_player_info[current].income = p->Recv_uint64(); _network_player_info[current].performance = p->Recv_uint16(); - _network_player_info[current].use_password = p->Recv_uint8(); + _network_player_info[current].use_password = p->Recv_bool(); for (i = 0; i < NETWORK_VEHICLE_TYPES; i++) _network_player_info[current].num_vehicle[i] = p->Recv_uint16(); for (i = 0; i < NETWORK_STATION_TYPES; i++) @@ -655,7 +655,7 @@ DEF_CLIENT_RECEIVE_COMMAND(PACKET_SERVER_CHAT) NetworkAction action = (NetworkAction)p->Recv_uint8(); uint16 index = p->Recv_uint16(); - bool self_send = (p->Recv_uint8() != 0); + bool self_send = p->Recv_bool(); p->Recv_string(msg, MAX_TEXT_MSG_LEN); ci_to = NetworkFindClientInfoFromIndex(index); |