mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 06:41:59 +00:00
Add ifdef'd correct code for DUDEEXTRA struct saving
This commit is contained in:
parent
8998d92688
commit
e6e9bac04b
1 changed files with 8 additions and 1 deletions
|
@ -437,7 +437,7 @@ 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)
|
||||
// Note: birthCounter/thinkTime are a union and share the same value (this is used for savefile backwards compatibility - see correct implementation below)
|
||||
arc("time", w.time, &empty)
|
||||
("recoil", w.teslaHit, &empty2)
|
||||
("prio", w.prio, &empty)
|
||||
|
@ -445,6 +445,13 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, DUDEEXTRA& w, DUDE
|
|||
("x2", w.stats.thinkTime, &empty)
|
||||
("x3", w.stats.active, &empty2)
|
||||
.EndObject();
|
||||
#if 0
|
||||
arc("time", w.time, &empty)
|
||||
("teslaHit", w.teslaHit, &empty2)
|
||||
("prio", w.prio, &empty)
|
||||
("thinkTime", w.stats.thinkTime, &empty)
|
||||
("active", w.stats.active, &empty2)
|
||||
#endif
|
||||
}
|
||||
return arc;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue