- Added speed factors for texture warp commands.
- Added damage type parameter to A_Die. SVN r942 (trunk)
This commit is contained in:
parent
8de6217f66
commit
dbf4677da9
6 changed files with 29 additions and 6 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue