File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 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
2931static const u32 ENEMY_INERTIA_TIME_TO_SOMEBODY = 3000 ;
3032static const u32 ENEMY_INERTIA_TIME_TO_ACTOR = 0 ;
3133static const u32 ENEMY_INERTIA_TIME_FROM_ACTOR = 6000 ;
@@ -58,6 +60,12 @@ bool CEnemyManager::is_useful (const CEntityAlive *entity_alive) const
5860bool 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
You can’t perform that action at this time.
0 commit comments