- we need to save the OF_JustSpawned flag to insert thinkers into the proper list.

This commit is contained in:
Christoph Oelckers 2016-09-22 21:17:34 +02:00
parent c22e8c50af
commit 604b2b316b

View file

@ -499,6 +499,13 @@ void DObject::SerializeUserVars(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;
}