From 345234eb8896e8071eea1ec649de54444b80f207 Mon Sep 17 00:00:00 2001 From: shiiion Date: Sun, 31 Oct 2021 04:20:19 -0700 Subject: [PATCH] x24c_effectTimer wasn't counted down --- Runtime/Weapon/CWaveBeam.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Weapon/CWaveBeam.cpp b/Runtime/Weapon/CWaveBeam.cpp index a5ec16f65..15e646c09 100644 --- a/Runtime/Weapon/CWaveBeam.cpp +++ b/Runtime/Weapon/CWaveBeam.cpp @@ -54,7 +54,7 @@ void CWaveBeam::UpdateGunFx(bool shotSmoke, float dt, const CStateManager& mgr, } } if (x258_25_effectTimerActive && x24c_effectTimer > 0.f) - x24c_effectTimer -= 0.f; + x24c_effectTimer -= dt; } CGunWeapon::UpdateGunFx(shotSmoke, dt, mgr, xf); } @@ -165,4 +165,4 @@ void CWaveBeam::Unload(CStateManager& mgr) { bool CWaveBeam::IsLoaded() const { return CGunWeapon::IsLoaded() && x258_24_loaded; } -} // namespace metaforce \ No newline at end of file +} // namespace metaforce