mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 15:22:15 +00:00
- fixed: A_CustomMissile should not jump to the See state for dead monsters when using CMF_CHECKTARGETDEAD.
This commit is contained in:
parent
46ec364443
commit
2be3b776d8
1 changed files with 1 additions and 1 deletions
|
@ -1028,7 +1028,7 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_CustomMissile)
|
|||
else if (flags & CMF_CHECKTARGETDEAD)
|
||||
{
|
||||
// Target is dead and the attack shall be aborted.
|
||||
if (self->SeeState != NULL) self->SetState(self->SeeState);
|
||||
if (self->SeeState != NULL && (self->health > 0 || !(self->flags3 & MF3_ISMONSTER))) self->SetState(self->SeeState);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue