mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Engine: light cleanup on CVEngineServer
This commit is contained in:
parent
8c85e1ec68
commit
6a8eb40930
src/engine/server
@ -9,10 +9,10 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: sets the persistence var in the CClient instance to 'ready'
|
||||
//-----------------------------------------------------------------------------
|
||||
bool CVEngineServer::PersistenceAvailable(void* entidx, int clientidx)
|
||||
bool CVEngineServer::PersistenceAvailable(CVEngineServer* const thisptr, const int clientidx)
|
||||
{
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
return CVEngineServer__PersistenceAvailable(entidx, clientidx);
|
||||
return CVEngineServer__PersistenceAvailable(thisptr, clientidx);
|
||||
}
|
||||
|
||||
void HVEngineServer::Detour(const bool bAttach) const
|
||||
|
@ -2,22 +2,21 @@
|
||||
#include "public/edict.h"
|
||||
#include "public/eiface.h"
|
||||
|
||||
/* ==== CVENGINESERVER ================================================================================================================================================== */
|
||||
inline bool(*CVEngineServer__PersistenceAvailable)(void* entidx, int clientidx);
|
||||
|
||||
inline bool* m_bIsDedicated = nullptr;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
class CVEngineServer : public IVEngineServer
|
||||
{
|
||||
public:
|
||||
static bool PersistenceAvailable(void* entidx, int clientidx);
|
||||
static bool PersistenceAvailable(CVEngineServer* const thisptr, const int clientidx);
|
||||
// Implementation in GameDLL.
|
||||
};
|
||||
extern CVEngineServer* g_pEngineServer;
|
||||
extern IVEngineServer* g_pEngineServerVFTable;
|
||||
|
||||
/* ==== CVENGINESERVER ================================================================================================================================================== */
|
||||
inline bool(*CVEngineServer__PersistenceAvailable)(CVEngineServer* const thisptr, const int clientidx);
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
inline bool* m_bIsDedicated = nullptr;
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
class HVEngineServer : public IDetour
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user