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
@@ -12,9 +12,13 @@ public:
void SetInternalPPS(int NewPPS) { mInternalPPS = NewPPS; }
void IncrementInternalPPS() { ++mInternalPPS; }
[[nodiscard]] int InternalPPS() const { return mInternalPPS; }
void SetTCPServer(TTCPServer& Server) { mTCPServer = std::ref(Server); }
private:
TTCPServer& TCPServer() { return mTCPServer->get(); }
TServer& mServer;
std::optional<std::reference_wrapper<TTCPServer>> mTCPServer { std::nullopt };
bool mShutdown { false };
int mInternalPPS { 0 };
};