2
0
mirror of https://github.com/rehlds/rehlds.git synced 2024-12-27 23:25:45 +03:00

ReHLDS API: Implemented CRehldsServerStatic::GetMaxClientsLimit

Bump minor version
This commit is contained in:
s1lent 2018-01-24 17:34:06 +07:00
parent 20200f7eaa
commit 82ee1b0aac
No known key found for this signature in database
GPG Key ID: 0FE401DC73916B5C
5 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,3 @@
majorVersion=3
minorVersion=3
minorVersion=4
maintenanceVersion=0

View File

@ -37,7 +37,7 @@
#include "pr_dlls.h"
#define REHLDS_API_VERSION_MAJOR 3
#define REHLDS_API_VERSION_MINOR 3
#define REHLDS_API_VERSION_MINOR 4
//Steam_NotifyClientConnect hook
typedef IHookChain<qboolean, IGameClient*, const void*, unsigned int> IRehldsHook_Steam_NotifyClientConnect;

View File

@ -104,6 +104,7 @@ public:
virtual IGameClient* GetClient(int id) = 0;
virtual client_t* GetClient_t(int id) = 0;
virtual int GetIndexOfClient_t(client_t* client) = 0;
virtual int GetMaxClientsLimit() = 0;
};
class IRehldsServerData {

View File

@ -155,6 +155,11 @@ int EXT_FUNC CRehldsServerStatic::GetMaxClients()
return g_psvs.maxclients;
}
int EXT_FUNC CRehldsServerStatic::GetMaxClientsLimit()
{
return g_psvs.maxclientslimit;
}
bool EXT_FUNC CRehldsServerStatic::IsLogActive()
{
return g_psvs.log.active ? true : false;

View File

@ -121,6 +121,7 @@ public:
virtual IGameClient* GetClient(int id);
virtual client_t* GetClient_t(int id);
virtual int GetIndexOfClient_t(client_t* client);
virtual int GetMaxClientsLimit();
};
class CRehldsServerData : public IRehldsServerData {