Move m_CondOffset initialization to ctor.
This commit is contained in:
parent
ac530a4ce0
commit
e8765c5d3d
@ -136,14 +136,17 @@ bool PlayerConditionsMgr::SetupProp(const char *varname)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PlayerConditionsMgr::Init()
|
PlayerConditionsMgr::PlayerConditionsMgr()
|
||||||
{
|
{
|
||||||
m_CondOffset[m_nPlayerCond] = 0;
|
m_CondOffset[m_nPlayerCond] = 0;
|
||||||
m_CondOffset[_condition_bits] = 0;
|
m_CondOffset[_condition_bits] = 0;
|
||||||
m_CondOffset[m_nPlayerCondEx] = 32;
|
m_CondOffset[m_nPlayerCondEx] = 32;
|
||||||
m_CondOffset[m_nPlayerCondEx2] = 64;
|
m_CondOffset[m_nPlayerCondEx2] = 64;
|
||||||
m_CondOffset[m_nPlayerCondEx3] = 96;
|
m_CondOffset[m_nPlayerCondEx3] = 96;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool PlayerConditionsMgr::Init()
|
||||||
|
{
|
||||||
memset(m_BackupProxyFns, 0, sizeof(m_BackupProxyFns));
|
memset(m_BackupProxyFns, 0, sizeof(m_BackupProxyFns));
|
||||||
|
|
||||||
bool bFoundProps = SetupProp<m_nPlayerCond>("m_nPlayerCond")
|
bool bFoundProps = SetupProp<m_nPlayerCond>("m_nPlayerCond")
|
||||||
|
@ -39,6 +39,7 @@ struct CondChangeData_t;
|
|||||||
class PlayerConditionsMgr : public IClientListener
|
class PlayerConditionsMgr : public IClientListener
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
PlayerConditionsMgr();
|
||||||
bool Init();
|
bool Init();
|
||||||
void Shutdown();
|
void Shutdown();
|
||||||
public: // IClientListener
|
public: // IClientListener
|
||||||
|
Loading…
Reference in New Issue
Block a user