Bug #2043 ยป 0036-Reorder-packets-sent-when-contact-re-established.patch
| server/plrhand.c | ||
|---|---|---|
|
|| team_has_embassy(pplayer2->team, pplayer1)) {
|
||
|
return; /* Avoid sending too much info over the network */
|
||
|
}
|
||
|
send_player_all_c(pplayer1, pplayer1->connections);
|
||
|
send_player_all_c(pplayer2, pplayer2->connections);
|
||
|
/* Send correct info about players to each other
|
||
|
* before sending updated contact info to each player.
|
||
|
* This makes sure that the client does not assume that
|
||
|
* it already has contact provided info, when it actually
|
||
|
* is only going to get it in the next packet. */
|
||
|
send_player_info_c(pplayer1, pplayer2->connections);
|
||
|
send_player_info_c(pplayer2, pplayer1->connections);
|
||
|
send_player_all_c(pplayer1, pplayer1->connections);
|
||
|
send_player_all_c(pplayer2, pplayer2->connections);
|
||
|
}
|
||
|
/**********************************************************************//**
|
||