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:
parent
20200f7eaa
commit
82ee1b0aac
@ -1,3 +1,3 @@
|
||||
majorVersion=3
|
||||
minorVersion=3
|
||||
minorVersion=4
|
||||
maintenanceVersion=0
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user