mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 21:20:39 +00:00
- Exhumed: fixed serialization.
The exhumedActors array was not written out, resulting in all kinds of strange effects.
This commit is contained in:
parent
6b6c3f26a5
commit
60faceaf59
4 changed files with 21 additions and 16 deletions
|
@ -72,12 +72,12 @@ const char *GetVersionString();
|
||||||
#define MINSAVEVER_DN3D 10
|
#define MINSAVEVER_DN3D 10
|
||||||
#define MINSAVEVER_BLD 11
|
#define MINSAVEVER_BLD 11
|
||||||
#define MINSAVEVER_SW 12
|
#define MINSAVEVER_SW 12
|
||||||
#define MINSAVEVER_PS 14
|
#define MINSAVEVER_PS 15
|
||||||
|
|
||||||
#define SAVEVER_DN3D 11
|
#define SAVEVER_DN3D 11
|
||||||
#define SAVEVER_BLD 11
|
#define SAVEVER_BLD 11
|
||||||
#define SAVEVER_SW 12
|
#define SAVEVER_SW 12
|
||||||
#define SAVEVER_PS 14
|
#define SAVEVER_PS 15
|
||||||
#define OLD_SAVEGAME 1 // this is to keep writing out the old format in Blood, even when data has been refactored.
|
#define OLD_SAVEGAME 1 // this is to keep writing out the old format in Blood, even when data has been refactored.
|
||||||
|
|
||||||
#define NETGAMEVERSION 1
|
#define NETGAMEVERSION 1
|
||||||
|
|
|
@ -642,6 +642,7 @@ void SerializeState(FSerializer& arc)
|
||||||
("slipmode", bSlipMode)
|
("slipmode", bSlipMode)
|
||||||
("PlayClock", PlayClock)
|
("PlayClock", PlayClock)
|
||||||
("spiritsprite", pSpiritSprite)
|
("spiritsprite", pSpiritSprite)
|
||||||
|
.SparseArray("actors", exhumedActors, kMaxSprites, activeSprites)
|
||||||
.EndObject();
|
.EndObject();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,6 +73,7 @@ void GameInterface::SerializeGameState(FSerializer& arc)
|
||||||
|
|
||||||
SerializeQueen(arc);
|
SerializeQueen(arc);
|
||||||
SerializeRat(arc);
|
SerializeRat(arc);
|
||||||
|
arc.EndObject();
|
||||||
}
|
}
|
||||||
if (arc.isReading())
|
if (arc.isReading())
|
||||||
{
|
{
|
||||||
|
|
|
@ -485,20 +485,23 @@ void Clip()
|
||||||
|
|
||||||
void SerializeView(FSerializer& arc)
|
void SerializeView(FSerializer& arc)
|
||||||
{
|
{
|
||||||
arc("camerax", nCamerax)
|
if (arc.BeginObject("view"))
|
||||||
("cameray", nCameray)
|
{
|
||||||
("cameraz", nCameraz)
|
arc("camerax", nCamerax)
|
||||||
("touchfloor", bTouchFloor)
|
("cameray", nCameray)
|
||||||
("chunktotal", nChunkTotal)
|
("cameraz", nCameraz)
|
||||||
("cameraa", nCameraa)
|
("touchfloor", bTouchFloor)
|
||||||
("camerapan", nCamerapan)
|
("chunktotal", nChunkTotal)
|
||||||
("camera", bCamera)
|
("cameraa", nCameraa)
|
||||||
("viewz", viewz)
|
("camerapan", nCamerapan)
|
||||||
("enemy", pEnemy)
|
("camera", bCamera)
|
||||||
("enemypal", nEnemyPal)
|
("viewz", viewz)
|
||||||
.Array("vertpan", dVertPan, countof(dVertPan))
|
("enemy", pEnemy)
|
||||||
.Array("quake", nQuake, countof(nQuake))
|
("enemypal", nEnemyPal)
|
||||||
.EndObject();
|
.Array("vertpan", dVertPan, countof(dVertPan))
|
||||||
|
.Array("quake", nQuake, countof(nQuake))
|
||||||
|
.EndObject();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
END_PS_NS
|
END_PS_NS
|
||||||
|
|
Loading…
Reference in a new issue