- savegame hackery for sequences.

This commit is contained in:
Christoph Oelckers 2021-11-10 21:45:15 +01:00
parent 4e1e9ca0c9
commit 9016256ac2

View file

@ -759,14 +759,20 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, SEQINST& w, SEQINS
{
if (arc.BeginObject(keyname))
{
arc("index", w.seqindex)
("actor", w.actor)
("type", w.type)
arc ("type", w.type)
("callback", w.callback)
("seqid", w.nSeqID)
("timecounter", w.timeCounter)
("frameindex", w.frameIndex)
.EndObject();
("frameindex", w.frameIndex);
#ifdef OLD_SAVEGAME
if (w.type == SS_SPRITE) arc("index", w.actor);
else arc("index", w.seqindex);
#else
arc("index", w.seqindex)
("actor", w.actor);
#endif
arc.EndObject();
}
return arc;
}