From c79f6195ad11c1d3efa36692c25664ba542e0d7a Mon Sep 17 00:00:00 2001 From: "simon.kagstrom" Date: Sat, 28 Mar 2009 13:03:50 +0000 Subject: [PATCH] Small corrections of refreshing + byte ordering --- Src/Network.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Src/Network.cpp b/Src/Network.cpp index 1fb8b78..dc48ec1 100644 --- a/Src/Network.cpp +++ b/Src/Network.cpp @@ -276,7 +276,7 @@ void Network::EncodeDisplay(Uint8 *master, Uint8 *remote) /* Updated, encode this */ this->EncodeDisplaySquare(dst, master, remote, sq, - this->refresh_square == sq); + this->refresh_square != sq); this->AddNetworkUpdate(dst); /* 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->public_port = htons(peer->public_port); 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->your_port = htons(lp->your_port);