mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Fix checking for gag spawnflag (#143)
This commit is contained in:
parent
2a264d2c9a
commit
9fc712da01
@ -66,7 +66,7 @@ void CBaseMonster::RunAI( void )
|
|||||||
|
|
||||||
// IDLE sound permitted in ALERT state is because monsters were silent in ALERT state. Only play IDLE sound in IDLE state
|
// IDLE sound permitted in ALERT state is because monsters were silent in ALERT state. Only play IDLE sound in IDLE state
|
||||||
// once we have sounds for that state.
|
// once we have sounds for that state.
|
||||||
if( ( m_MonsterState == MONSTERSTATE_IDLE || m_MonsterState == MONSTERSTATE_ALERT ) && RANDOM_LONG( 0, 99 ) == 0 && !( pev->flags & SF_MONSTER_GAG ) )
|
if( ( m_MonsterState == MONSTERSTATE_IDLE || m_MonsterState == MONSTERSTATE_ALERT ) && RANDOM_LONG( 0, 99 ) == 0 && !( pev->spawnflags & SF_MONSTER_GAG ) )
|
||||||
{
|
{
|
||||||
IdleSound();
|
IdleSound();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user