attempt to fix ghost player issue

This commit is contained in:
Lion Kortlepel
2021-02-17 12:51:57 +01:00
committed by Anonymous275
parent 13f8be5d39
commit e04a569e33
8 changed files with 37 additions and 5 deletions

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 };
};