mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 22:11:43 +00:00
- Fixed: AActor::Slam mzst check the charging monster's health before setting it back to its See state. Damaging the target may cause action that might have killed it.
SVN r2837 (trunk)
This commit is contained in:
parent
a2673c2cc4
commit
59b19d36fb
1 changed files with 6 additions and 2 deletions
|
@ -2626,8 +2626,12 @@ bool AActor::Slam (AActor *thing)
|
|||
int dam = GetMissileDamage (7, 1);
|
||||
P_DamageMobj (thing, this, this, dam, NAME_Melee);
|
||||
P_TraceBleed (dam, thing, this);
|
||||
if (SeeState != NULL) SetState (SeeState);
|
||||
else SetIdle();
|
||||
// The charging monster may have died by the target's actions here.
|
||||
if (health > 0)
|
||||
{
|
||||
if (SeeState != NULL) SetState (SeeState);
|
||||
else SetIdle();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue