- Backported kgsws's weapon dropitem changes from Skulltag.

SVN r3289 (trunk)
This commit is contained in:
Braden Obrzut 2011-09-08 00:55:47 +00:00
parent 7714ee3ffd
commit bb1b825f24

View file

@ -1185,6 +1185,22 @@ void APlayerPawn::Die (AActor *source, AActor *inflictor)
{ {
AInventory *item; AInventory *item;
// kgDROP - start - modified copy from a_action.cpp
FDropItem *di = weap->GetDropItems();
if (di != NULL)
{
while (di != NULL)
{
if (di->Name != NAME_None)
{
const PClass *ti = PClass::FindClass(di->Name);
if (ti) P_DropItem (player->mo, ti, di->amount, di->probability);
}
di = di->Next;
}
} else
// kgDROP - end
if (weap->SpawnState != NULL && if (weap->SpawnState != NULL &&
weap->SpawnState != ::GetDefault<AActor>()->SpawnState) weap->SpawnState != ::GetDefault<AActor>()->SpawnState)
{ {