mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 00:05:34 +00:00
fixed ghost player issue
This commit is contained in:
parent
b81ac35b37
commit
f13523fbe5
@ -79,6 +79,5 @@ int TClient::SecondsSinceLastPing() {
|
||||
auto seconds = std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::high_resolution_clock::now() - mLastPingTime)
|
||||
.count();
|
||||
debug("ping time for " + GetName() + ": " + std::to_string(seconds));
|
||||
return seconds;
|
||||
}
|
||||
|
@ -95,7 +95,6 @@ void TServer::GlobalParser(std::weak_ptr<TClient> 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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user