mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-01-13 23:28:04 +03:00
Reset client m_signals on fullupdate (#588)
This commit is contained in:
parent
3a8b0d1330
commit
8d6bf017f5
@ -7045,7 +7045,11 @@ void EXT_FUNC CBasePlayer::__API_HOOK(UpdateClientData)()
|
||||
{
|
||||
m_fInitHUD = FALSE;
|
||||
gInitHUD = FALSE;
|
||||
#ifdef REGAMEDLL_FIXES
|
||||
m_signals.Reset();
|
||||
#else
|
||||
m_signals.Update();
|
||||
#endif
|
||||
|
||||
MESSAGE_BEGIN(MSG_ONE, gmsgResetHUD, nullptr, pev);
|
||||
MESSAGE_END();
|
||||
|
@ -39,8 +39,7 @@ class CUnifiedSignals
|
||||
public:
|
||||
CUnifiedSignals()
|
||||
{
|
||||
m_flSignal = 0;
|
||||
m_flState = 0;
|
||||
Reset();
|
||||
}
|
||||
public:
|
||||
void Update()
|
||||
@ -52,6 +51,12 @@ public:
|
||||
int GetSignal() const { return m_flSignal; }
|
||||
int GetState() const { return m_flState; }
|
||||
|
||||
void Reset()
|
||||
{
|
||||
m_flState = 0;
|
||||
m_flSignal = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
int m_flSignal;
|
||||
int m_flState;
|
||||
|
Loading…
x
Reference in New Issue
Block a user