diff -r 9f0db041581a -r fbe69cd9afdf core/ConVarManager.h --- a/core/ConVarManager.h Thu Feb 27 20:22:01 2014 -0500 +++ b/core/ConVarManager.h Thu Feb 27 19:55:13 2014 -0700 @@ -39,8 +39,10 @@ #include #include #include +#include #include #include "concmd_cleaner.h" +#include "PlayerManager.h" #if SOURCE_ENGINE == SE_DARKMESSIAH class EQueryCvarValueStatus; @@ -80,6 +82,7 @@ QueryCvarCookie_t cookie; /**< Cookie that identifies query */ IPluginFunction *pCallback; /**< Function that will be called when query is finished */ cell_t value; /**< Optional value passed to query function */ + cell_t client; /**< Only used for cleaning up on client disconnection */ }; class ConVarManager : @@ -87,7 +90,8 @@ public IHandleTypeDispatch, public IPluginsListener, public IRootConsoleCommand, - public IConCommandTracker + public IConCommandTracker, + public IClientListener { public: ConVarManager(); @@ -106,6 +110,8 @@ void OnRootConsoleCommand(const char *cmdname, const CCommand &command); public: //IConCommandTracker void OnUnlinkConCommandBase(ConCommandBase *pBase, const char *name, bool is_read_safe); +public: //IClientListener + void OnClientDisconnected(int client); public: /** * Create a convar and return a handle to it.