diff --git a/src/game/server/hl/monsterstate.cpp b/src/game/server/hl/monsterstate.cpp index cc1c65c8..b7816dcd 100644 --- a/src/game/server/hl/monsterstate.cpp +++ b/src/game/server/hl/monsterstate.cpp @@ -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(); }