More fixing of network byte ordering problems

This commit is contained in:
simon.kagstrom 2009-03-28 12:55:11 +00:00
parent bd757f9479
commit f5f6f20113

View File

@ -652,6 +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);
}
lp->n_peers = htonl(lp->n_peers);
lp->your_port = htons(lp->your_port);
@ -736,6 +737,7 @@ bool Network::DeMarshalData(NetworkUpdate *p)
peer->private_port = ntohs(peer->private_port);
peer->public_port = ntohs(peer->public_port);
peer->is_master = ntohs(peer->is_master);
peer->server_id = ntohl(peer->server_id);
}
lp->your_port = ntohs(lp->your_port);
} break;