Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Send pad buffer to clients when they join; fixes issue 6524.
  • Loading branch information
jchv committed Aug 25, 2013
1 parent 1cbc8f8 commit 417bfb2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Core/Core/Src/NetPlayServer.cpp
Expand Up @@ -187,6 +187,12 @@ unsigned int NetPlayServer::OnConnect(sf::SocketTCP& socket)
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
std::map<sf::SocketTCP, Client>::const_iterator
i,
Expand Down

0 comments on commit 417bfb2

Please sign in to comment.