Expose OF_Transient to actors as bNoSaveGame
This commit is contained in:
parent
9f24d8babc
commit
e61ab4cbe2
3 changed files with 8 additions and 0 deletions
|
|
@ -440,6 +440,10 @@ DObject *PClass::CreateNew()
|
|||
I_Error("Attempt to instantiate abstract class %s.", TypeName.GetChars());
|
||||
}
|
||||
ConstructNative (mem);
|
||||
|
||||
if (Defaults != nullptr)
|
||||
((DObject *)mem)->ObjectFlags |= ((DObject *)Defaults)->ObjectFlags & OF_Transient;
|
||||
|
||||
((DObject *)mem)->SetClass (const_cast<PClass *>(this));
|
||||
InitializeSpecials(mem, Defaults, &PClass::SpecialInits);
|
||||
return (DObject *)mem;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue