attempt to fix ghost player issue

This commit is contained in:
Lion Kortlepel authored and Anonymous275 committed 2021-03-18 23:44:14 +02:00
1 parent 13f8be5d39
commit e04a569e33
8 files changed
+37 -5

No files matched your search

+4
View File
@@ -1,5 +1,6 @@
#pragma once
#include <chrono>
#include <memory>
#include <string>
#include <unordered_set>
@@ -45,6 +46,8 @@ public:
void SetIsSynced(bool NewIsSynced) { mIsSynced = NewIsSynced; }
void SetIsConnected(bool NewIsConnected) { mIsConnected = NewIsConnected; }
TServer& Server() const;
void UpdatePingTime();
int SecondsSinceLastPing();
private:
TServer& mServer;
@@ -59,4 +62,5 @@ private:
std::string mDID;
int mStatus = 0;
int mID = -1;
std::chrono::time_point<std::chrono::high_resolution_clock> mLastPingTime;
};