Removed maxClients caching in core (bug 5007, bug 4986, r=fyren).

This commit is contained in:
Nicholas Hastings
2011-07-06 17:50:37 -04:00
parent 053b522aff
commit 5ba82ef0fc
2 changed files with 17 additions and 20 deletions
+1 -3
View File
@@ -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;