mirror of https://github.com/FWGS/hlsdk-xash3d
Fix crash.
This commit is contained in:
parent
3342d95993
commit
08557f5769
|
@ -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…
Reference in New Issue