Merge branch 'floatcvt' of https://github.com/rheit/zdoom into floatcvt

# Conflicts:
#	src/r_utility.h
This commit is contained in:
Christoph Oelckers 2016-03-31 09:24:41 +02:00
commit a5c4e2dab3
25 changed files with 377 additions and 529 deletions

View file

@ -622,15 +622,14 @@ 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.x <<
po->StartSpot.y << po->interpolation;
arc << po->tag << po->Angle << po->StartSpot.pos << po->interpolation;
}
}
else
{
int data;
angle_t angle;
fixed_t deltaX, deltaY;
DAngle angle;
DVector2 delta;
arc << data;
if (data != ASEG_POLYOBJS)
@ -648,12 +647,10 @@ void P_SerializePolyobjs (FArchive &arc)
{
I_Error ("UnarchivePolyobjs: Invalid polyobj tag");
}
arc << angle;
arc << angle << delta << po->interpolation;
po->RotatePolyobj (angle, true);
arc << deltaX << deltaY << po->interpolation;
deltaX -= po->StartSpot.x;
deltaY -= po->StartSpot.y;
po->MovePolyobj (deltaX, deltaY, true);
delta -= po->StartSpot.pos;
po->MovePolyobj (delta, true);
}
}
}