Send pad buffer to clients when they join; fixes issue 6524.

This commit is contained in:
John Chadwick 2013-08-24 21:43:33 -04:00
parent 1cbc8f8182
commit 417bfb2630
1 changed files with 6 additions and 0 deletions

View File

@ -187,6 +187,12 @@ unsigned int NetPlayServer::OnConnect(sf::SocketTCP& socket)
socket.Send(spac); socket.Send(spac);
} }
// send the pad buffer value
spac.Clear();
spac << (MessageId)NP_MSG_PAD_BUFFER;
spac << (u32)m_target_buffer_size;
socket.Send(spac);
// sync values with new client // sync values with new client
std::map<sf::SocketTCP, Client>::const_iterator std::map<sf::SocketTCP, Client>::const_iterator
i, i,