mirror of
https://github.com/ZDoom/Raze.git
synced 2025-02-28 06:02:13 +00:00
- Blood: save basepoint for all actors, not just for those with an XSPRITE.
This commit is contained in:
parent
9680ff1863
commit
3499049976
1 changed files with 18 additions and 17 deletions
|
@ -474,7 +474,8 @@ void DBloodActor::Serialize(FSerializer& arc)
|
||||||
arc("xvel", vel.X)
|
arc("xvel", vel.X)
|
||||||
("yvel", vel.Y)
|
("yvel", vel.Y)
|
||||||
("zvel", vel.Z)
|
("zvel", vel.Z)
|
||||||
("hasx", hasx);
|
("hasx", hasx)
|
||||||
|
("basepoint", basePoint);
|
||||||
|
|
||||||
// The rest is only relevant if the actor has an xsprite.
|
// The rest is only relevant if the actor has an xsprite.
|
||||||
if (hasX())
|
if (hasX())
|
||||||
|
@ -484,25 +485,25 @@ void DBloodActor::Serialize(FSerializer& arc)
|
||||||
("dudeextra", dudeExtra)
|
("dudeextra", dudeExtra)
|
||||||
("explosionflag", explosionhackflag)
|
("explosionflag", explosionhackflag)
|
||||||
("spritehit", hit)
|
("spritehit", hit)
|
||||||
("basepoint", basePoint)
|
|
||||||
("owneractor", ownerActor);
|
("owneractor", ownerActor);
|
||||||
|
|
||||||
#ifdef NOONE_EXTENSIONS
|
|
||||||
if (gModernMap)
|
|
||||||
{
|
|
||||||
arc("spritemass", spriteMass)
|
|
||||||
("prevmarker", prevmarker)
|
|
||||||
.Array("conditions", condition, 2);
|
|
||||||
|
|
||||||
|
|
||||||
// GenDudeExtra only contains valid info for kDudeModernCustom and kDudeModernCustomBurning so only save when needed as these are not small.
|
|
||||||
if (spr.type == kDudeModernCustom || spr.type == kDudeModernCustomBurning)
|
|
||||||
{
|
|
||||||
arc("gendudeextra", genDudeExtra);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef NOONE_EXTENSIONS
|
||||||
|
if (gModernMap)
|
||||||
|
{
|
||||||
|
arc("spritemass", spriteMass)
|
||||||
|
("prevmarker", prevmarker)
|
||||||
|
.Array("conditions", condition, 2);
|
||||||
|
|
||||||
|
|
||||||
|
// GenDudeExtra only contains valid info for kDudeModernCustom and kDudeModernCustomBurning so only save when needed as these are not small.
|
||||||
|
if (spr.type == kDudeModernCustom || spr.type == kDudeModernCustomBurning)
|
||||||
|
{
|
||||||
|
arc("gendudeextra", genDudeExtra);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
//---------------------------------------------------------------------------
|
//---------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in a new issue