mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-26 13:34:22 +01:00
Small corrections of refreshing + byte ordering
This commit is contained in:
parent
55cbd752c6
commit
c79f6195ad
@ -276,7 +276,7 @@ void Network::EncodeDisplay(Uint8 *master, Uint8 *remote)
|
|||||||
|
|
||||||
/* Updated, encode this */
|
/* Updated, encode this */
|
||||||
this->EncodeDisplaySquare(dst, master, remote, sq,
|
this->EncodeDisplaySquare(dst, master, remote, sq,
|
||||||
this->refresh_square == sq);
|
this->refresh_square != sq);
|
||||||
this->AddNetworkUpdate(dst);
|
this->AddNetworkUpdate(dst);
|
||||||
|
|
||||||
/* This has been refreshed, move to the next one */
|
/* This has been refreshed, move to the next one */
|
||||||
@ -652,7 +652,7 @@ bool Network::MarshalData(NetworkUpdate *p)
|
|||||||
peer->private_port = htons(peer->private_port);
|
peer->private_port = htons(peer->private_port);
|
||||||
peer->public_port = htons(peer->public_port);
|
peer->public_port = htons(peer->public_port);
|
||||||
peer->is_master = htons(peer->is_master);
|
peer->is_master = htons(peer->is_master);
|
||||||
peer->server_id = ntohl(peer->server_id);
|
peer->server_id = htonl(peer->server_id);
|
||||||
}
|
}
|
||||||
lp->n_peers = htonl(lp->n_peers);
|
lp->n_peers = htonl(lp->n_peers);
|
||||||
lp->your_port = htons(lp->your_port);
|
lp->your_port = htons(lp->your_port);
|
||||||
|
Loading…
Reference in New Issue
Block a user