Use NF instead of normal P_SetMobjState to prevent endless looping
This commit is contained in:
parent
20351a103e
commit
41130465b4
|
@ -1102,7 +1102,7 @@ void A_JetJawChomp(mobj_t *actor)
|
||||||
if (!actor->target || !(actor->target->flags & MF_SHOOTABLE)
|
if (!actor->target || !(actor->target->flags & MF_SHOOTABLE)
|
||||||
|| actor->target->health <= 0 || !P_CheckSight(actor, actor->target))
|
|| actor->target->health <= 0 || !P_CheckSight(actor, actor->target))
|
||||||
{
|
{
|
||||||
P_SetMobjState(actor, actor->info->spawnstate);
|
P_SetMobjStateNF(actor, actor->info->spawnstate);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue