mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-25 21:14:22 +01:00
Fix some protocol errors (there are more)
This commit is contained in:
parent
ee7843b80f
commit
a9fffcce87
@ -1153,9 +1153,9 @@ bool Network::SelectPeer(const char *hostname, uint16_t port, uint32_t server_id
|
|||||||
network_connection_error_t Network::WaitForPeerSelection()
|
network_connection_error_t Network::WaitForPeerSelection()
|
||||||
{
|
{
|
||||||
if (this->peer_selected == 1)
|
if (this->peer_selected == 1)
|
||||||
return AGAIN_ERROR;
|
return OK;
|
||||||
|
|
||||||
return OK;
|
return AGAIN_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Network::WaitForPeerReply()
|
bool Network::WaitForPeerReply()
|
||||||
@ -1182,7 +1182,7 @@ bool Network::ConnectToPeer()
|
|||||||
bool out;
|
bool out;
|
||||||
|
|
||||||
this->AddNetworkUpdate(ud);
|
this->AddNetworkUpdate(ud);
|
||||||
out = this->SendServerUpdate();
|
out = this->SendPeerUpdate();
|
||||||
this->ResetNetworkUpdate();
|
this->ResetNetworkUpdate();
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
|
Loading…
Reference in New Issue
Block a user