- fixed: Inventory items that have been modified with Dehacked to be monsters should not be killed by P_Massacre when being owned.

This commit is contained in:
Christoph Oelckers 2018-07-20 11:43:49 +02:00
commit 18213f377c
3 changed files with 16 additions and 1 deletions

View file

@ -147,6 +147,20 @@ void AInventory::Serialize(FSerializer &arc)
("droptime", DropTime, def->DropTime);
}
//===========================================================================
//
// AInventory :: Massacre
//
// This is a countermeasure for Dehacked modifications mainly.
//
//===========================================================================
bool AInventory::Massacre()
{
if (Owner == nullptr) return Super::Massacre();
return false;
}
//===========================================================================
//
// AInventory :: MarkPrecacheSounds