core/PlayerManager.h
changeset 3350 4e7c8ee5bc0e
parent 3347 72a4e13eb106
child 3418 b0e93f5101ef
     1.1 --- a/core/PlayerManager.h	Fri Jul 08 07:54:21 2011 -0400
     1.2 +++ b/core/PlayerManager.h	Fri Jul 08 07:55:20 2011 -0400
     1.3 @@ -135,6 +135,7 @@
     1.4  	void OnSourceModShutdown();
     1.5  	void OnSourceModLevelEnd();
     1.6  	ConfigResult OnSourceModConfigChanged(const char *key, const char *value, ConfigSource source, char *error, size_t maxlength);
     1.7 +	void OnSourceModMaxPlayersChanged(int newvalue);
     1.8  public:
     1.9  	CPlayer *GetPlayerByIndex(int client) const;
    1.10  	void RunAuthChecks();
    1.11 @@ -171,7 +172,7 @@
    1.12  public:
    1.13  	inline int MaxClients()
    1.14  	{
    1.15 -		return gpGlobals->maxClients;
    1.16 +		return m_maxClients;
    1.17  	}
    1.18  	inline int NumPlayers()
    1.19  	{
    1.20 @@ -205,6 +206,7 @@
    1.21  	IForward *m_onActivate2;
    1.22  	CPlayer *m_Players;
    1.23  	int *m_UserIdLookUp;
    1.24 +	int m_maxClients;
    1.25  	int m_PlayerCount;
    1.26  	bool m_FirstPass;
    1.27  	unsigned int *m_AuthQueue;