Added more rejection packets, revised some logic

This commit is contained in:
Kayne Ruse
2014-09-10 16:06:01 +10:00
parent 2c06232264
commit 17b9eb7ad4
6 changed files with 43 additions and 28 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ void InWorld::Update() {
camera.y = localCharacter->GetOrigin().y - camera.marginY;
//check the connection
if (Clock::now() - lastBeat > std::chrono::seconds(5)) {
if (Clock::now() - lastBeat > std::chrono::seconds(3)) {
if (attemptedBeats > 2) {
throw(std::runtime_error("Connection lost"));
}