- Fixed: DFlashFader did some operations in its destructor that had to be moved
to its Destroy method. - Fixed: Dropped weapons from dying players should not double ammo. SVN r935 (trunk)
This commit is contained in:
parent
16d18c707a
commit
29c6615e50
4 changed files with 10 additions and 3 deletions
|
|
@ -1109,6 +1109,7 @@ void APlayerPawn::Die (AActor *source, AActor *inflictor)
|
|||
{
|
||||
static_cast<AWeapon *>(item)->AmmoGive2 = weap->Ammo2->Amount;
|
||||
}
|
||||
item->ItemFlags |= IF_IGNORESKILL;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -1117,11 +1118,13 @@ void APlayerPawn::Die (AActor *source, AActor *inflictor)
|
|||
if (item != NULL)
|
||||
{
|
||||
item->Amount = weap->Ammo1->Amount;
|
||||
item->ItemFlags |= IF_IGNORESKILL;
|
||||
}
|
||||
item = P_DropItem (this, weap->AmmoType2, -1, 256);
|
||||
if (item != NULL)
|
||||
{
|
||||
item->Amount = weap->Ammo2->Amount;
|
||||
item->ItemFlags |= IF_IGNORESKILL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue