Indentation

This commit is contained in:
stiffly
2015-12-11 16:22:14 +01:00
parent 15442c8c75
commit 36ae451ea6
+4 -5
View File
@@ -6,7 +6,7 @@ using namespace boost::asio::ip;
Client::Client() : m_Socket(m_IOService)
{
// 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.InputRight = "";
}
@@ -304,11 +304,11 @@ bool Client::OnKeyUp(const Events::KeyUp & e)
m_IsWASDKeyDown.W = false;
return true;
}
if (e.KeyCode == GLFW_KEY_A){
if (e.KeyCode == GLFW_KEY_A) {
m_IsWASDKeyDown.A = false;
return true;
}
if (e.KeyCode == GLFW_KEY_S){
if (e.KeyCode == GLFW_KEY_S) {
m_IsWASDKeyDown.S = false;
return true;
}
@@ -332,8 +332,7 @@ void Client::IdentifyPacketLoss()
// if no packets lost, difference should be equal to 1
int difference = m_PacketID - m_PreviousPacketID;
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);
}
}