From c4a7dcb1396bc85f7a5d93c6082f438f6e8cd5f0 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Thu, 29 Mar 2018 23:05:50 +0500 Subject: [PATCH] Fix a little mistakes. --- dlls/hunger/medkit.cpp | 2 +- dlls/hunger/tfcsniper.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }