diff --git a/dlls/hunger/medkit.cpp b/dlls/hunger/medkit.cpp index 448a81d2..613cf4d8 100644 --- a/dlls/hunger/medkit.cpp +++ b/dlls/hunger/medkit.cpp @@ -99,7 +99,7 @@ void CWeaponEinarMedkit::PrimaryAttack() if( m_fInAttack ) { - if( m_flNextSecondaryAttack < UTIL_WeaponTimeBase() ); + if( m_flNextSecondaryAttack < UTIL_WeaponTimeBase() ) Heal(); return; } diff --git a/dlls/hunger/tfcsniper.cpp b/dlls/hunger/tfcsniper.cpp index b4fcd1d9..2837bcb9 100644 --- a/dlls/hunger/tfcsniper.cpp +++ b/dlls/hunger/tfcsniper.cpp @@ -250,7 +250,7 @@ void CWeaponEinarTFCSniper::WeaponIdle() } if( m_fInSpecialReload == 2 ) { - EMIT_SOUND_DYN( ENT( m_pPlayer->pev ), CHAN_ITEM, "weapons/reload3.wav", RANDOM_LONG( 0.8, 0.9 ), ATTN_NORM, 0, 93 + RANDOM_LONG( 0, 0x1f ) ); + EMIT_SOUND_DYN( ENT( m_pPlayer->pev ), CHAN_ITEM, "weapons/reload3.wav", RANDOM_FLOAT( 0.8, 0.9 ), ATTN_NORM, 0, 93 + RANDOM_LONG( 0, 0x1f ) ); m_pPlayer->m_flNextAttack = UTIL_WeaponTimeBase() + 1.0; m_fInSpecialReload = 3; }