Merge remote-tracking branch 'origin/master' into Networking

# Conflicts:
#	src/Game/Game.cpp
This commit is contained in:
stiffly
2015-12-17 14:10:02 +01:00
16 changed files with 426 additions and 62 deletions
+3 -3
View File
@@ -196,7 +196,7 @@ void Client::ParseEventMessage(Package& package)
// Sett Player name
m_PlayerDefinitions[Id].Name = command.erase(0, 7);
} else {
LOG_INFO("%i: Event message: %s", m_PacketID, command);
LOG_INFO("%i: Event message: %s", m_PacketID, command.c_str());
}
}
@@ -241,7 +241,7 @@ int Client::Receive(char* data, size_t length)
0, error);
if (error) {
LOG_ERROR("ReadFromServer: %s", error.message());
//LOG_ERROR("Receive: %s", error.message().c_str());
}
return bytesReceived;
@@ -313,7 +313,7 @@ bool Client::OnInputCommand(const Events::InputCommand & e)
}
}
}
if (e.Command == "Sprint") { // Connect for now
if (e.Command == "ConnectToServer") { // Connect for now
Connect();
}
return false;