mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- don't move bad polyobjects in the savegame loader.
This commit is contained in:
parent
c8296f0d7c
commit
a25ba16755
2 changed files with 7 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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];
|
||||
|
|
Loading…
Reference in a new issue