Browse Source

Fix crash.

theyhunger
Night Owl 7 years ago
parent
commit
08557f5769
  1. 4
      dlls/hunger/hand.cpp

4
dlls/hunger/hand.cpp

@ -134,9 +134,7 @@ void CEinarHand::SetYawSpeed() @@ -134,9 +134,7 @@ void CEinarHand::SetYawSpeed()
//=========================================================
void CEinarHand::AttackSound()
{
int iSound = RANDOM_LONG( 0, 2 );
if( iSound != 0 )
EMIT_SOUND_DYN( edict(), CHAN_VOICE, pAttackSounds[iSound], GetSoundVolue(), ATTN_IDLE, 0, GetVoicePitch() );
EMIT_SOUND_DYN( edict(), CHAN_VOICE, RANDOM_SOUND_ARRAY( pAttackSounds ), GetSoundVolue(), ATTN_IDLE, 0, GetVoicePitch() );
}
//=========================================================

Loading…
Cancel
Save