Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
Fix checking for gag spawnflag (FWGS#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
FreeSlave committed Dec 25, 2020
1 parent 2a264d2 commit 9fc712d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dlls/monsterstate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
// 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();
}
Expand Down

0 comments on commit 9fc712d

Please sign in to comment.