mirror of
https://github.com/1dot13/source.git
synced 2026-08-05 14:00:23 +02:00
Fix Fatima not moving after map traversal
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
#include "../include/CivilianPlan.h"
|
||||
#include "../../TacticalAI/ai.h"
|
||||
#include "NPC.h"
|
||||
#include "Soldier Profile.h"
|
||||
|
||||
namespace AI
|
||||
{
|
||||
@@ -13,6 +15,20 @@ namespace AI
|
||||
|
||||
void CivilianPlan::execute(PlanInputData& environment)
|
||||
{
|
||||
if ( !environment.turn_based() )
|
||||
{
|
||||
if ( (get_npc()->ubProfile != NO_PROFILE) && (gMercProfiles[get_npc()->ubProfile].ubMiscFlags3 & PROFILE_MISC_FLAG3_HANDLE_DONE_TRAVERSAL) )
|
||||
{
|
||||
TriggerNPCWithGivenApproach(get_npc()->ubProfile, APPROACH_DONE_TRAVERSAL, FALSE);
|
||||
gMercProfiles[get_npc()->ubProfile].ubMiscFlags3 &= (~PROFILE_MISC_FLAG3_HANDLE_DONE_TRAVERSAL);
|
||||
get_npc()->ubQuoteActionID = 0;
|
||||
// wait a tiny bit
|
||||
get_npc()->aiData.usActionData = 100;
|
||||
get_npc()->aiData.bAction = AI_ACTION_WAIT;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
switch (get_npc()->aiData.bAlertStatus)
|
||||
{
|
||||
case STATUS_GREEN:
|
||||
|
||||
Reference in New Issue
Block a user