From 8998d926887f1115b2735286ad0a1ee000c0517e Mon Sep 17 00:00:00 2001 From: carnivoroussociety <38839485+carnivoroussociety@users.noreply.github.com> Date: Thu, 7 Oct 2021 16:25:00 +1000 Subject: [PATCH] Restore original savename variables for DUDEEXTRA struct --- source/games/blood/src/loadsave.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/source/games/blood/src/loadsave.cpp b/source/games/blood/src/loadsave.cpp index 560088ee2..64b0536bb 100644 --- a/source/games/blood/src/loadsave.cpp +++ b/source/games/blood/src/loadsave.cpp @@ -437,11 +437,13 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, DUDEEXTRA& w, DUDE if (arc.BeginObject(keyname)) { + // Note: birthCounter/thinkTime are a union and share the same value (this is used for savefile backwards compatibility) arc("time", w.time, &empty) - ("teslaHit", w.teslaHit, &empty2) + ("recoil", w.teslaHit, &empty2) ("prio", w.prio, &empty) - ("thinkTime", w.stats.thinkTime, &empty) - ("active", w.stats.active, &empty2) + ("x1", w.stats.birthCounter, &empty) + ("x2", w.stats.thinkTime, &empty) + ("x3", w.stats.active, &empty2) .EndObject(); } return arc;