From 9618ba1e7875ad4adeb40bfc24d5e17577dac507 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 28 Mar 2023 09:15:58 +1100 Subject: [PATCH] - Don't serialise player angles twice. --- source/games/blood/src/player.cpp | 3 +-- source/games/duke/src/savegame.cpp | 3 +-- source/games/exhumed/src/player.cpp | 3 +-- source/games/sw/src/save.cpp | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/source/games/blood/src/player.cpp b/source/games/blood/src/player.cpp index f5fc043df..353500668 100644 --- a/source/games/blood/src/player.cpp +++ b/source/games/blood/src/player.cpp @@ -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) diff --git a/source/games/duke/src/savegame.cpp b/source/games/duke/src/savegame.cpp index da6efe723..f29b6ac2b 100644 --- a/source/games/duke/src/savegame.cpp +++ b/source/games/duke/src/savegame.cpp @@ -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) diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index 0b3a237e2..39cbb76f0 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -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) diff --git a/source/games/sw/src/save.cpp b/source/games/sw/src/save.cpp index d85487d5b..16532b0b1 100644 --- a/source/games/sw/src/save.cpp +++ b/source/games/sw/src/save.cpp @@ -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)