diff --git a/regamedll/dlls/player.cpp b/regamedll/dlls/player.cpp index 4e9f3088..c63f81bf 100644 --- a/regamedll/dlls/player.cpp +++ b/regamedll/dlls/player.cpp @@ -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(); diff --git a/regamedll/dlls/unisignals.h b/regamedll/dlls/unisignals.h index f96be691..445c85af 100644 --- a/regamedll/dlls/unisignals.h +++ b/regamedll/dlls/unisignals.h @@ -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;