From 1f23bff236b9d3a3bd717ea533cee42b931d564c Mon Sep 17 00:00:00 2001 From: Marc-Antoine Lortie Date: Fri, 31 Dec 2021 12:03:05 -0500 Subject: [PATCH] Restore Hornetgun fire phase. (#238) --- dlls/weapons.cpp | 1 + dlls/weapons.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dlls/weapons.cpp b/dlls/weapons.cpp index f4ad57c4..76e5408d 100644 --- a/dlls/weapons.cpp +++ b/dlls/weapons.cpp @@ -1637,6 +1637,7 @@ IMPLEMENT_SAVERESTORE( CEgon, CBasePlayerWeapon ) TYPEDESCRIPTION CHgun::m_SaveData[] = { DEFINE_FIELD( CHgun, m_flRechargeTime, FIELD_TIME ), + DEFINE_FIELD( CHgun, m_iFirePhase, FIELD_INTEGER ), }; IMPLEMENT_SAVERESTORE( CHgun, CBasePlayerWeapon ) diff --git a/dlls/weapons.h b/dlls/weapons.h index 7e33de78..c5f0d46a 100644 --- a/dlls/weapons.h +++ b/dlls/weapons.h @@ -870,7 +870,7 @@ public: float m_flRechargeTime; - int m_iFirePhase;// don't save me. + int m_iFirePhase; virtual BOOL UseDecrement( void ) {