mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-03 14:26:09 +00:00
update ping time on any packet, not just ping packets, for now
This commit is contained in:
@@ -76,6 +76,8 @@ void TServer::GlobalParser(const std::weak_ptr<TClient>& Client, std::string Pac
|
||||
return;
|
||||
}
|
||||
auto LockedClient = Client.lock();
|
||||
// FIXME: this should not be needed here
|
||||
LockedClient->UpdatePingTime();
|
||||
|
||||
std::any Res;
|
||||
char Code = Packet.at(0);
|
||||
@@ -96,7 +98,6 @@ void TServer::GlobalParser(const std::weak_ptr<TClient>& Client, std::string Pac
|
||||
case 'p':
|
||||
Network.Respond(*LockedClient, ("p"), false);
|
||||
Network.UpdatePlayer(*LockedClient);
|
||||
LockedClient->UpdatePingTime();
|
||||
return;
|
||||
case 'O':
|
||||
if (Packet.length() > 1000) {
|
||||
|
||||
Reference in New Issue
Block a user