mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
Add CHF_DONTIDLE for A_Chase
This commit is contained in:
parent
21cd42cdfb
commit
196d2efc86
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue