Skip to content

Commit

Permalink
fix incorrect flag variable for monsters
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintWish committed Sep 24, 2024
1 parent cd5e23c commit c19dfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/hl/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 c19dfa0

Please sign in to comment.