mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Fixed typo. Properly mask off cheats and dev from concommands and convars.
This commit is contained in:
parent
c90d3184ea
commit
15bfffdd0f
@ -7,7 +7,7 @@
|
||||
#include "public/include/bansystem.h"
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Purpose: checks is particular client is banned on the comp server
|
||||
// Purpose: checks if particular client is banned on the comp server
|
||||
//-----------------------------------------------------------------------------
|
||||
void IsClientBanned(R5Net::Client* pR5net, const std::string svIPAddr, std::int64_t nNucleusID)
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ bool HConCommand_IsFlagSet(ConCommandBase* pCommandBase, int nFlag)
|
||||
printf(" Flaged: %08X\n", pCommandBase->m_nFlags);
|
||||
}
|
||||
// Mask off FCVAR_CHEATS and FCVAR_DEVELOPMENTONLY
|
||||
pCommandBase->m_nFlags &= 0xFFFFBFFD;
|
||||
pCommandBase->m_nFlags &= ~(FCVAR_DEVELOPMENTONLY | FCVAR_CHEAT);
|
||||
if (cm_debug_cmdquery->m_pParent->m_iValue > 0)
|
||||
{
|
||||
printf(" Masked: %08X\n", pCommandBase->m_nFlags);
|
||||
|
@ -17,7 +17,7 @@ bool HIConVar_IsFlagSet(ConVar* pConVar, int nFlags)
|
||||
printf(" Flaged: %08X\n", pConVar->m_ConCommandBase.m_nFlags);
|
||||
}
|
||||
// Mask off FCVAR_CHEATS and FCVAR_DEVELOPMENTONLY
|
||||
pConVar->m_ConCommandBase.m_nFlags &= 0xFFFFBFFD;
|
||||
pConVar->m_ConCommandBase.m_nFlags &= ~(FCVAR_DEVELOPMENTONLY | FCVAR_CHEAT);
|
||||
if (cm_debug_cmdquery->m_pParent->m_iValue > 0)
|
||||
{
|
||||
printf(" Masked: %08X\n", pConVar->m_ConCommandBase.m_nFlags);
|
||||
|
Loading…
x
Reference in New Issue
Block a user