From 9016256ac28babd6d27eb77faa3aaec7a0ba2d1e Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Wed, 10 Nov 2021 21:45:15 +0100 Subject: [PATCH] - savegame hackery for sequences. --- source/games/blood/src/seq.cpp | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/source/games/blood/src/seq.cpp b/source/games/blood/src/seq.cpp index fb67bca23..27e84211b 100644 --- a/source/games/blood/src/seq.cpp +++ b/source/games/blood/src/seq.cpp @@ -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; }