mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-19 15:40:58 +00:00
- savegame hackery for sequences.
This commit is contained in:
parent
4e1e9ca0c9
commit
9016256ac2
1 changed files with 11 additions and 5 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue