mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-02-16 08:32:02 +00:00
- Fixed: A_Die didn't consider missiles for the function.
This commit is contained in:
parent
c1a0ee9623
commit
5977cb04d9
1 changed files with 4 additions and 1 deletions
|
@ -3161,7 +3161,10 @@ DEFINE_ACTION_FUNCTION_PARAMS(AActor, A_Die)
|
||||||
ACTION_PARAM_START(1);
|
ACTION_PARAM_START(1);
|
||||||
ACTION_PARAM_NAME(damagetype, 0);
|
ACTION_PARAM_NAME(damagetype, 0);
|
||||||
|
|
||||||
P_DamageMobj (self, NULL, NULL, self->health, damagetype, DMG_FORCED);
|
if (self->flags & MF_MISSILE)
|
||||||
|
P_ExplodeMissile(self, NULL, NULL);
|
||||||
|
else
|
||||||
|
P_DamageMobj (self, NULL, NULL, self->health, damagetype, DMG_FORCED);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in a new issue