From 8769b0175c09e9637a10a7eee7f999492b839881 Mon Sep 17 00:00:00 2001 From: tankefugl Date: Wed, 22 Jun 2005 21:52:30 +0000 Subject: [PATCH] Mantis 0000484: o The shotgun now properly fires an empty click sound when under water and emptied git-svn-id: https://unknownworlds.svn.cloudforge.com/ns1@208 67975925-1194-0748-b3d5-c16f83f1a3a1 --- main/source/mod/AvHMarineWeapon.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main/source/mod/AvHMarineWeapon.cpp b/main/source/mod/AvHMarineWeapon.cpp index beb3d264..dfab9851 100644 --- a/main/source/mod/AvHMarineWeapon.cpp +++ b/main/source/mod/AvHMarineWeapon.cpp @@ -208,7 +208,10 @@ void AvHReloadableMarineWeapon::Reload(void) void AvHReloadableMarineWeapon::WeaponIdle(void) { - if(this->m_flTimeWeaponIdle < UTIL_WeaponTimeBase()) + // tankefugl: 0000484 - ensures that all idle weapons can fire the empty sound + ResetEmptySound(); + + if(this->m_flTimeWeaponIdle < UTIL_WeaponTimeBase()) { if((this->m_iClip == 0) && (this->mSpecialReload == kSpecialReloadNone) && m_pPlayer->m_rgAmmo[m_iPrimaryAmmoType]) {