mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Remove legacy code
The persistence enabled field was no longer needed a while ago, but never removed.
This commit is contained in:
parent
e6eabc2cb8
commit
a738e58985
@ -117,19 +117,17 @@ void CClient::Disconnect(const Reputation_t nRepLvl, const char* szReason, ...)
|
|||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
void CClient::VActivatePlayer(CClient* pClient)
|
void CClient::VActivatePlayer(CClient* pClient)
|
||||||
{
|
{
|
||||||
pClient->SetPersistenceState(PERSISTENCE::PERSISTENCE_READY); // Set the client instance to 'ready'.
|
// Set the client instance to 'ready' before calling ActivatePlayer.
|
||||||
int nUserID = pClient->GetUserID();
|
pClient->SetPersistenceState(PERSISTENCE::PERSISTENCE_READY);
|
||||||
|
|
||||||
if (!g_ServerPlayer[nUserID].m_bPersistenceEnabled && sv_showconnecting->GetBool())
|
|
||||||
{
|
|
||||||
g_ServerPlayer[nUserID].m_bPersistenceEnabled = true;
|
|
||||||
CNetChan* pNetChan = pClient->GetNetChan();
|
|
||||||
|
|
||||||
DevMsg(eDLL_T::SERVER, "Enabled persistence for client #%d; channel %s(%s) ('%llu')\n",
|
|
||||||
nUserID, pNetChan->GetName(), pNetChan->GetAddress(), pClient->GetNucleusID());
|
|
||||||
} ///////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
v_CClient_ActivatePlayer(pClient);
|
v_CClient_ActivatePlayer(pClient);
|
||||||
|
|
||||||
|
if (sv_showconnecting->GetBool())
|
||||||
|
{
|
||||||
|
const CNetChan* pNetChan = pClient->GetNetChan();
|
||||||
|
|
||||||
|
DevMsg(eDLL_T::SERVER, "Activated player #%d; channel %s(%s) ('%llu')\n",
|
||||||
|
pClient->GetUserID(), pNetChan->GetName(), pNetChan->GetAddress(), pClient->GetNucleusID());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------------
|
//---------------------------------------------------------------------------------
|
||||||
|
@ -17,7 +17,6 @@ struct ServerPlayer_t
|
|||||||
, m_flLastNetProcessTime(0.0)
|
, m_flLastNetProcessTime(0.0)
|
||||||
, m_flStringCommandQuotaTimeStart(0.0)
|
, m_flStringCommandQuotaTimeStart(0.0)
|
||||||
, m_nStringCommandQuotaCount(0)
|
, m_nStringCommandQuotaCount(0)
|
||||||
, m_bPersistenceEnabled(false)
|
|
||||||
{}
|
{}
|
||||||
inline void Reset(void)
|
inline void Reset(void)
|
||||||
{
|
{
|
||||||
@ -25,14 +24,12 @@ struct ServerPlayer_t
|
|||||||
m_flLastNetProcessTime = 0.0;
|
m_flLastNetProcessTime = 0.0;
|
||||||
m_flStringCommandQuotaTimeStart = 0.0;
|
m_flStringCommandQuotaTimeStart = 0.0;
|
||||||
m_nStringCommandQuotaCount = 0;
|
m_nStringCommandQuotaCount = 0;
|
||||||
m_bPersistenceEnabled = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
double m_flCurrentNetProcessTime;
|
double m_flCurrentNetProcessTime;
|
||||||
double m_flLastNetProcessTime;
|
double m_flLastNetProcessTime;
|
||||||
double m_flStringCommandQuotaTimeStart;
|
double m_flStringCommandQuotaTimeStart;
|
||||||
int m_nStringCommandQuotaCount;
|
int m_nStringCommandQuotaCount;
|
||||||
bool m_bPersistenceEnabled;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
extern ServerPlayer_t g_ServerPlayer[MAX_PLAYERS];
|
extern ServerPlayer_t g_ServerPlayer[MAX_PLAYERS];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user