- Added speed factors for texture warp commands.

- Added damage type parameter to A_Die.

SVN r942 (trunk)
This commit is contained in:
Christoph Oelckers 2008-04-26 08:46:55 +00:00
commit dbf4677da9
6 changed files with 29 additions and 6 deletions

View file

@ -2502,7 +2502,19 @@ void A_Pain (AActor *actor)
// killough 11/98: kill an object
void A_Die (AActor *actor)
{
P_DamageMobj (actor, NULL, NULL, actor->health, NAME_None);
ENamedName name;
int index=CheckIndex(1, &CallingState);
if (index<0)
{
name = NAME_None;
}
else
{
name = ENamedName(StateParameters[index]);
}
P_DamageMobj (actor, NULL, NULL, actor->health, name);
}
//