- Truncate rotating polyobjects to 7 bits of fractional precision per vertex.

Fixes known cases of freezing.

SVN r3399 (trunk)
This commit is contained in:
Randy Heit 2012-02-28 03:05:31 +00:00
parent 64e992f648
commit f6c1c0e2df

View file

@ -1148,8 +1148,8 @@ static void RotatePt (int an, fixed_t *x, fixed_t *y, fixed_t startSpotX, fixed_
fixed_t tr_x = *x;
fixed_t tr_y = *y;
*x = DMulScale16 (tr_x, finecosine[an], -tr_y, finesine[an])+startSpotX;
*y = DMulScale16 (tr_x, finesine[an], tr_y, finecosine[an])+startSpotY;
*x = (DMulScale16 (tr_x, finecosine[an], -tr_y, finesine[an]) & 0xFFFFFE00) + startSpotX;
*y = (DMulScale16 (tr_x, finesine[an], tr_y, finecosine[an]) & 0xFFFFFE00) + startSpotY;
}
//==========================================================================