From a199fe182548ac9d5d11cd29cd9697175500203d Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Apr 2016 12:04:32 +0200 Subject: [PATCH] - fixed: loading polyobjects from a savegame was incomplete. --- src/p_saveg.cpp | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/p_saveg.cpp b/src/p_saveg.cpp index 050e4ae76..8744ec740 100644 --- a/src/p_saveg.cpp +++ b/src/p_saveg.cpp @@ -539,15 +539,7 @@ void P_SerializePolyobjs (FArchive &arc) arc << seg << po_NumPolyobjs; for(i = 0, po = polyobjs; i < po_NumPolyobjs; i++, po++) { - arc << po->tag << po->Angle << po->StartSpot.pos << po->interpolation; - if (SaveVersion >= 4537) - { - arc << po->bBlocked; - } - else - { - po->bBlocked = false; - } + arc << po->tag << po->Angle << po->StartSpot.pos << po->interpolation << po->bBlocked; } } else @@ -573,6 +565,15 @@ void P_SerializePolyobjs (FArchive &arc) I_Error ("UnarchivePolyobjs: Invalid polyobj tag"); } arc << angle << delta << po->interpolation; + if (SaveVersion >= 4537) + { + arc << po->bBlocked; + } + else + { + po->bBlocked = false; + } + po->RotatePolyobj (angle, true); delta -= po->StartSpot.pos; po->MovePolyobj (delta, true);