🎨 Leverage 'IsAnyOf' on monster mode checks
This commit is contained in:
parent
1cd62bbc64
commit
fe95e36d90
3 changed files with 4 additions and 6 deletions
|
|
@ -167,7 +167,7 @@ void SyncMonster(int pnum, const TSyncMonster *p)
|
|||
if (monster.position.future.x == p->_mx && monster.position.future.y == p->_my) {
|
||||
return;
|
||||
}
|
||||
if (monster._mmode == MonsterMode::Charge || monster._mmode == MonsterMode::Petrified) {
|
||||
if (IsAnyOf(monster._mmode, MonsterMode::Charge, MonsterMode::Petrified)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue