mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- we need to save the OF_JustSpawned flag to insert thinkers into the proper list.
This commit is contained in:
parent
c22e8c50af
commit
604b2b316b
1 changed files with 7 additions and 0 deletions
|
@ -499,6 +499,13 @@ void DObject::SerializeUserVars(FSerializer &arc)
|
||||||
|
|
||||||
void DObject::Serialize(FSerializer &arc)
|
void DObject::Serialize(FSerializer &arc)
|
||||||
{
|
{
|
||||||
|
int fresh = ObjectFlags & OF_JustSpawned;
|
||||||
|
int freshdef = 0;
|
||||||
|
arc("justspawned", fresh, freshdef);
|
||||||
|
if (arc.isReading())
|
||||||
|
{
|
||||||
|
ObjectFlags |= fresh;
|
||||||
|
}
|
||||||
ObjectFlags |= OF_SerialSuccess;
|
ObjectFlags |= OF_SerialSuccess;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue