From f13523fbe546460c1b16a0559ecff4d69a1a11eb Mon Sep 17 00:00:00 2001 From: Lion Kortlepel Date: Wed, 17 Feb 2021 13:18:30 +0100 Subject: [PATCH] fixed ghost player issue --- src/Client.cpp | 1 - src/TServer.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/src/Client.cpp b/src/Client.cpp index 32d8df6..7459855 100644 --- a/src/Client.cpp +++ b/src/Client.cpp @@ -79,6 +79,5 @@ int TClient::SecondsSinceLastPing() { auto seconds = std::chrono::duration_cast( std::chrono::high_resolution_clock::now() - mLastPingTime) .count(); - debug("ping time for " + GetName() + ": " + std::to_string(seconds)); return seconds; } diff --git a/src/TServer.cpp b/src/TServer.cpp index e1a8bf0..47a839c 100644 --- a/src/TServer.cpp +++ b/src/TServer.cpp @@ -95,7 +95,6 @@ void TServer::GlobalParser(std::weak_ptr Client, std::string Packet, TP TCPServer.Respond(*LockedClient, ("p"), false); TCPServer.UpdatePlayer(*LockedClient); LockedClient->UpdatePingTime(); - debug("ping received from " + LockedClient->GetName()); return; case 'O': if (Packet.length() > 1000) {