Removed maxClients caching in core (bug 5007, bug 4986, r=fyren).
This commit is contained in:
@@ -135,7 +135,6 @@ public: //SMGlobalClass
|
||||
void OnSourceModShutdown();
|
||||
void OnSourceModLevelEnd();
|
||||
ConfigResult OnSourceModConfigChanged(const char *key, const char *value, ConfigSource source, char *error, size_t maxlength);
|
||||
void OnSourceModMaxPlayersChanged(int newvalue);
|
||||
public:
|
||||
CPlayer *GetPlayerByIndex(int client) const;
|
||||
void RunAuthChecks();
|
||||
@@ -172,7 +171,7 @@ public: //IPlayerManager
|
||||
public:
|
||||
inline int MaxClients()
|
||||
{
|
||||
return m_maxClients;
|
||||
return gpGlobals->maxClients;
|
||||
}
|
||||
inline int NumPlayers()
|
||||
{
|
||||
@@ -206,7 +205,6 @@ private:
|
||||
IForward *m_onActivate2;
|
||||
CPlayer *m_Players;
|
||||
int *m_UserIdLookUp;
|
||||
int m_maxClients;
|
||||
int m_PlayerCount;
|
||||
bool m_FirstPass;
|
||||
unsigned int *m_AuthQueue;
|
||||
|
||||
Reference in New Issue
Block a user