From 604b2b316b41d10e4157a60d4cb8306f760714b5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Thu, 22 Sep 2016 21:17:34 +0200 Subject: [PATCH] - we need to save the OF_JustSpawned flag to insert thinkers into the proper list. --- src/dobject.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/dobject.cpp b/src/dobject.cpp index b5af56151..8fba75aa6 100644 --- a/src/dobject.cpp +++ b/src/dobject.cpp @@ -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; }