Send pad buffer to clients when they join; fixes issue 6524.
This commit is contained in:
parent
1cbc8f8182
commit
417bfb2630
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue