Restore original savename variables for DUDEEXTRA struct

This commit is contained in:
carnivoroussociety 2021-10-07 16:25:00 +10:00 committed by Christoph Oelckers
parent 8dbd0f10d3
commit 8998d92688
1 changed files with 5 additions and 3 deletions

View File

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