mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-02-16 10:41:01 +00:00
attempt to fix ghost player issue
This commit is contained in:
committed by
Anonymous275
parent
13f8be5d39
commit
e04a569e33
@@ -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 };
|
||||
};
|
||||
Reference in New Issue
Block a user