- Don't serialise player angles twice.

This commit is contained in:
Mitchell Richters 2023-03-28 09:15:58 +11:00
parent 72be2623c3
commit 9618ba1e78
4 changed files with 4 additions and 8 deletions

View file

@ -2401,8 +2401,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYER& w, PLAYER*
if (arc.BeginObject(keyname))
{
arc("spritenum", w.actor)
("horizon", w.Angles)
("angle", w.Angles)
("angles", w.Angles)
("newweapon", w.newWeapon)
("used1", w.used1)
("weaponqav", w.weaponQav)

View file

@ -78,8 +78,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, player_struct& w,
{
if (arc.BeginObject(keyname))
{
arc("angle", w.Angles)
("horizon", w.Angles)
arc("angles", w.Angles)
.Array("gotweapon", w.gotweapon, MAX_WEAPONS)
("pals", w.pals)
("fricx", w.fric.X)

View file

@ -2116,8 +2116,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, Player& w, Player*
("field3a", w.nState)
("field3c", w.nLastWeapon)
("seq", w.nSeq)
("horizon", w.Angles)
("angle", w.Angles)
("angles", w.Angles)
("lives", w.nLives)
("double", w.nDouble)
("invisible", w.nInvisible)

View file

@ -472,8 +472,7 @@ FSerializer& Serialize(FSerializer& arc, const char* keyname, PLAYER& w, PLAYER*
("camera_check_time_delay", w.camera_check_time_delay)
("cursectnum", w.cursector)
("lastcursectnum", w.lastcursector)
("horizon", w.Angles)
("angle", w.Angles)
("angles", w.Angles)
("recoil_amt", w.recoil_amt)
("recoil_speed", w.recoil_speed)
("recoil_ndx", w.recoil_ndx)