- 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

@ -320,6 +320,21 @@ FActorInfo *FActorInfo::GetReplacement ()
return rep;
}
FActorInfo *FActorInfo::GetReplacee ()
{
if (Replacee == NULL)
{
return this;
}
// The Replacee field is temporarily NULLed to prevent
// potential infinite recursion.
FActorInfo *savedrep = Replacee;
Replacee = NULL;
FActorInfo *rep = savedrep->GetReplacee ();
Replacee = savedrep;
return rep;
}
FDoomEdMap DoomEdMap;
FDoomEdMap::FDoomEdEntry *FDoomEdMap::DoomEdHash[DOOMED_HASHSIZE];