- don't move bad polyobjects in the savegame loader.

This commit is contained in:
Christoph Oelckers 2022-04-15 22:41:55 +02:00
parent c8296f0d7c
commit a25ba16755
2 changed files with 7 additions and 4 deletions

View file

@ -525,9 +525,12 @@ FSerializer &Serialize(FSerializer &arc, const char *key, FPolyObj &poly, FPolyO
if (arc.isReading())
{
poly.RotatePolyobj(angle, true);
delta -= poly.StartSpot.pos;
poly.MovePolyobj(delta, true);
if (poly.OriginalPts.Size() > 0)
{
poly.RotatePolyobj(angle, true);
delta -= poly.StartSpot.pos;
poly.MovePolyobj(delta, true);
}
}
}
return arc;

View file

@ -945,7 +945,7 @@ bool FPolyObj::RotatePolyobj (DAngle angle, bool fromsave)
UnLinkPolyobj();
for(unsigned i=0;i < Vertices.Size(); i++)
for(unsigned i=0;i < OriginalPts.Size(); i++)
{
PrevPts[i].pos = Vertices[i]->fPos();
FPolyVertex torot = OriginalPts[i];