Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect check for monster gag spawnflag. #3076

Open
malortie opened this issue Mar 14, 2021 · 0 comments
Open

Incorrect check for monster gag spawnflag. #3076

malortie opened this issue Mar 14, 2021 · 0 comments

Comments

@malortie
Copy link

As explained here, the code !(pev->flags & SF_MONSTER_GAG) should check against pev->spawnflags instead of pev->flags.

if ( ( m_MonsterState == MONSTERSTATE_IDLE || m_MonsterState == MONSTERSTATE_ALERT ) && RANDOM_LONG(0,99) == 0 && !(pev->flags & SF_MONSTER_GAG) )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant