Add CHF_DONTIDLE for A_Chase

This commit is contained in:
RaveYard 2022-03-23 19:56:27 +01:00 committed by Christoph Oelckers
parent 21cd42cdfb
commit 196d2efc86
2 changed files with 3 additions and 1 deletions

View file

@ -2189,6 +2189,7 @@ enum ChaseFlags
CHF_NODIRECTIONTURN = 64,
CHF_NOPOSTATTACKTURN = 128,
CHF_STOPIFBLOCKED = 256,
CHF_DONTIDLE = 512,
};
void A_Wander(AActor *self, int flags)
@ -2430,7 +2431,7 @@ void A_DoChase (AActor *actor, bool fastchase, FState *meleestate, FState *missi
}
if (actor->target == NULL)
{
if (actor->flags & MF_FRIENDLY)
if (flags & CHF_DONTIDLE || actor->flags & MF_FRIENDLY)
{
//A_Look(actor);
if (actor->target == NULL)

View file

@ -140,6 +140,7 @@ enum EChaseFlags
CHF_NODIRECTIONTURN = 64,
CHF_NOPOSTATTACKTURN = 128,
CHF_STOPIFBLOCKED = 256,
CHF_DONTIDLE = 512,
CHF_DONTTURN = CHF_NORANDOMTURN | CHF_NOPOSTATTACKTURN | CHF_STOPIFBLOCKED
};