Indentation
This commit is contained in:
@@ -6,7 +6,7 @@ using namespace boost::asio::ip;
|
|||||||
Client::Client() : m_Socket(m_IOService)
|
Client::Client() : m_Socket(m_IOService)
|
||||||
{
|
{
|
||||||
// Set up network stream
|
// Set up network stream
|
||||||
m_ReceiverEndpoint = udp::endpoint(boost::asio::ip::address::from_string("192.168.1.6"), 13);
|
m_ReceiverEndpoint = udp::endpoint(boost::asio::ip::address::from_string("192.168.1.2"), 13);
|
||||||
m_NextSnapshot.InputForward = "";
|
m_NextSnapshot.InputForward = "";
|
||||||
m_NextSnapshot.InputRight = "";
|
m_NextSnapshot.InputRight = "";
|
||||||
}
|
}
|
||||||
@@ -304,11 +304,11 @@ bool Client::OnKeyUp(const Events::KeyUp & e)
|
|||||||
m_IsWASDKeyDown.W = false;
|
m_IsWASDKeyDown.W = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (e.KeyCode == GLFW_KEY_A){
|
if (e.KeyCode == GLFW_KEY_A) {
|
||||||
m_IsWASDKeyDown.A = false;
|
m_IsWASDKeyDown.A = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (e.KeyCode == GLFW_KEY_S){
|
if (e.KeyCode == GLFW_KEY_S) {
|
||||||
m_IsWASDKeyDown.S = false;
|
m_IsWASDKeyDown.S = false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
@@ -332,8 +332,7 @@ void Client::IdentifyPacketLoss()
|
|||||||
// if no packets lost, difference should be equal to 1
|
// if no packets lost, difference should be equal to 1
|
||||||
int difference = m_PacketID - m_PreviousPacketID;
|
int difference = m_PacketID - m_PreviousPacketID;
|
||||||
if (difference != 1) {
|
if (difference != 1) {
|
||||||
for (int i = m_PreviousPacketID + 1; i < m_PacketID; i++)
|
for (int i = m_PreviousPacketID + 1; i < m_PacketID; i++) {
|
||||||
{
|
|
||||||
LOG_INFO("Packet %i was lost...", i);
|
LOG_INFO("Packet %i was lost...", i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user