- 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
1 changed files with 7 additions and 0 deletions

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;
}