From 9e134c16682a0194fbea52d9e04be40a0912ac40 Mon Sep 17 00:00:00 2001 From: Wend4r <47463683+Wend4r@users.noreply.github.com> Date: Tue, 4 Feb 2025 04:28:23 +0300 Subject: [PATCH] Correct `IConnectionlessPacketHandler` inheritance to `CNetworkGameServerBase` --- public/iserver.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/public/iserver.h b/public/iserver.h index 395f63293..bc095c084 100644 --- a/public/iserver.h +++ b/public/iserver.h @@ -153,11 +153,14 @@ class CNetworkGameServerBase : public INetworkGameServer, protected IConnectionl virtual ~CNetworkGameServerBase() = 0; virtual void SetMaxClients( int nMaxClients ) = 0; - - virtual void unk301() = 0; - virtual bool ProcessConnectionlessPacket( const ns_address *addr, bf_read *bf ) = 0; // process a connectionless packet +public: // IConnectionlessPacketHandler + virtual bool ProcessConnectionlessPacket( netpacket_t *packet ) = 0; // process a connectionless packet + +private: + virtual bool unk301( const ns_address *addr, bf_read *bf ) = 0; +public: virtual CPlayerUserId GetPlayerUserId( CPlayerSlot slot ) = 0; virtual const char *GetPlayerNetworkIDString( CPlayerSlot slot ) = 0;