- fixed: Polyobjects did not save their specialdata pointer.

- fixed: DMovePoly did not save its m_Speedv member.
This commit is contained in:
Christoph Oelckers 2016-05-22 01:26:13 +02:00
commit f184438032
4 changed files with 32 additions and 24 deletions

View file

@ -578,6 +578,7 @@ void P_SerializePolyobjs (FArchive &arc)
for(i = 0, po = polyobjs; i < po_NumPolyobjs; i++, po++)
{
arc << po->tag << po->Angle << po->StartSpot.pos << po->interpolation << po->bBlocked << po->bHasPortals;
arc << po->specialdata;
}
}
else
@ -605,6 +606,10 @@ void P_SerializePolyobjs (FArchive &arc)
arc << angle << delta << po->interpolation;
arc << po->bBlocked;
arc << po->bHasPortals;
if (SaveVersion >= 4548)
{
arc << po->specialdata;
}
po->RotatePolyobj (angle, true);
delta -= po->StartSpot.pos;