Skip to content

Commit 5ae2527

Browse files
committed
Add aiIgnoreActor for mutants
1 parent 74b8f81 commit 5ae2527

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/xrGame/enemy_manager.cpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@
2525
#include "movement_manager.h"
2626
#include "agent_manager.h"
2727
#include "agent_enemy_manager.h"
28-
28+
#ifndef MASTER_GOLD
29+
# include "ai_debug.h"
30+
#endif // MASTER_GOLD
2931
static const u32 ENEMY_INERTIA_TIME_TO_SOMEBODY = 3000;
3032
static const u32 ENEMY_INERTIA_TIME_TO_ACTOR = 0;
3133
static const u32 ENEMY_INERTIA_TIME_FROM_ACTOR = 6000;
@@ -58,6 +60,12 @@ bool CEnemyManager::is_useful (const CEntityAlive *entity_alive) const
5860
bool CEnemyManager::useful (const CEntityAlive *entity_alive) const
5961
{
6062
PROF_EVENT("CEnemyManager::useful");
63+
64+
#ifndef MASTER_GOLD
65+
if (const_cast<CEntityAlive*>(entity_alive)->cast_actor() && psAI_Flags.test(aiIgnoreActor))
66+
return (false);
67+
#endif // MASTER_GOLD
68+
6169
if (!entity_alive->g_Alive())
6270
return (false);
6371

0 commit comments

Comments
 (0)