From ad3860790c42c859c6a8ac94e86319d1436f9629 Mon Sep 17 00:00:00 2001 From: Alexander Batalov Date: Mon, 16 Jan 2023 16:42:50 +0300 Subject: [PATCH] Fix NPCs not joining combat --- src/combat_ai.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/combat_ai.cc b/src/combat_ai.cc index 84d3e1b..1a55d27 100644 --- a/src/combat_ai.cc +++ b/src/combat_ai.cc @@ -3167,11 +3167,11 @@ bool _combatai_want_to_join(Object* a1) return true; } - if ((a1->data.critter.combat.maneuver & CRITTER_MANEUVER_STOP_ATTACKING) == 0) { + if ((a1->data.critter.combat.maneuver & CRITTER_MANEUVER_STOP_ATTACKING) != 0) { return false; } - if ((a1->data.critter.combat.maneuver & CRITTER_MANUEVER_FLEEING) == 0) { + if ((a1->data.critter.combat.maneuver & CRITTER_MANUEVER_FLEEING) != 0) { return false; }