- Added replacement handling to A_BossDeath.

SVN r260 (trunk)
This commit is contained in:
Christoph Oelckers 2006-07-16 15:00:10 +00:00
commit e5a26c75fa
6 changed files with 26 additions and 4 deletions

View file

@ -2377,14 +2377,17 @@ bool CheckBossDeath (AActor *actor)
//
void A_BossDeath (AActor *actor)
{
FName type = actor->GetClass()->TypeName;
FName mytype = actor->GetClass()->TypeName;
// Ugh...
FName type = actor->GetClass()->ActorInfo->GetReplacee()->Class->TypeName;
// Do generic special death actions first
bool checked = false;
FSpecialAction *sa = level.info->specialactions;
while (sa)
{
if (type == sa->Type)
if (type == sa->Type || mytype == sa->Type)
{
if (!checked && !CheckBossDeath(actor))
{