- Added replacement handling to A_BossDeath.
SVN r260 (trunk)
This commit is contained in:
parent
93cd78ebfb
commit
e5a26c75fa
6 changed files with 26 additions and 4 deletions
15
src/info.cpp
15
src/info.cpp
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue